The Workweek Memberships endpoint provides a list of all workweek memberships that belongs to the
account of the user making the request. The response will contain an array of workweek membership
objects, sorted by their start_date
.
This endpoint returns structured Workweek Membership objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results
array
and will be indexed by ID in the workweek_memberships
top-level JSON key.
Please see our Response Format section for more information.
created_after | string <date-time> Filter for records created after a specified datetime. The datetime must be in ISO 8601 format. |
created_before | string <date-time> Filter for records created before a specified datetime. The datetime must be in ISO 8601 format. |
effective_date | string <date> Includes only workweek memberships with a start date before, and an end date after, the specified date. The date must be in ISO 8601 format. |
include | string Any of the below associations can be included in your request by providing the
|
only | string Allows you to request one or more resources directly by ID. Multiple IDs can be supplied
in a comma separated list, like |
order | string Default: "start_date:asc" Supply Valid values: |
page | integer <int32> Default: 1 |
participants_for_workspace_id | integer <int32> Limit Workweek Memberships by those participating in the workspace of the specified workspace ID. |
participating_with | boolean Limits workweek memberships to those associated with the user making the request. |
per_page | integer <int32> <= 200 Default: 20 |
updated_after | string <date-time> Filter for records updated after a specified datetime. The datetime must be in ISO 8601 format. |
updated_before | string <date-time> Filter for records updated before a specified datetime. The datetime must be in ISO 8601 format. |
user_ids | Array of integers <int32> Includes only workweek memberships that belong to the specified user IDs. |
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "workweek_memberships": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}
}, - "users": {
- "property1": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}, - "property2": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}
}, - "workweeks": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}
}
}
This endpoint returns structured Workweek Membership objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results
array
and will be indexed by ID in the workweek_memberships
top-level JSON key.
Please see our Response Format section for more information.
object | |||||||||||||||||||
|
{- "workweek_membership": {
- "user_id": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "monday_minutes": 0,
- "tuesday_minutes": 0,
- "wednesday_minutes": 0,
- "thursday_minutes": 0,
- "friday_minutes": 0,
- "saturday_minutes": 0
}
}
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "workweek_memberships": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}
}, - "users": {
- "property1": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}, - "property2": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}
}, - "workweeks": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}
}
}
Switches the specified user to the account default workweek, starting on the specified date.
This endpoint returns structured Workweek Membership objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results
array
and will be indexed by ID in the workweek_memberships
top-level JSON key.
Please see our Response Format section for more information.
object | |||||
|
{- "workweek_membership": {
- "user_id": 0,
- "start_date": "2019-08-24"
}
}
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "workweek_memberships": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}
}, - "users": {
- "property1": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}, - "property2": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}
}, - "workweeks": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}
}
}
This endpoint returns structured Workweek Membership objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results
array
and will be indexed by ID in the workweek_memberships
top-level JSON key.
Please see our Response Format section for more information.
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "workweek_memberships": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}
}, - "users": {
- "property1": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}, - "property2": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}
}, - "workweeks": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}
}
}
This endpoint returns structured Workweek Membership objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results
array
and will be indexed by ID in the workweek_memberships
top-level JSON key.
Please see our Response Format section for more information.
object | |||||||||||||||||
|
{- "workweek_membership": {
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "monday_minutes": 0,
- "tuesday_minutes": 0,
- "wednesday_minutes": 0,
- "thursday_minutes": 0,
- "friday_minutes": 0,
- "saturday_minutes": 0
}
}
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "workweek_memberships": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "workweek_id": "string"
}
}, - "users": {
- "property1": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}, - "property2": {
- "abbreviated_timezone": "string",
- "account_membership_id": "string",
- "bio": "string",
- "city": "string",
- "classification": "string",
- "country": "string",
- "custom_field_value_ids": [
- "string"
], - "email_address": "string",
- "external_reference_ids": [
- "string"
], - "full_name": "string",
- "headline": "string",
- "last_site_activity": "2019-08-24T14:15:22Z",
- "manager_id": "string",
- "photo_path": "string",
- "role_id": "string",
- "skill_ids": [
- "string"
], - "skill_membership_ids": [
- "string"
], - "state": "string",
- "website": "string",
- "work_sample_ids": [
- "string"
]
}
}, - "workweeks": {
- "property1": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}, - "property2": {
- "created_at": "2019-08-24T14:15:22Z",
- "default": true,
- "end_date": "2019-08-24",
- "friday_minutes": 0,
- "monday_minutes": 0,
- "saturday_minutes": 0,
- "start_date": "2019-08-24",
- "sunday_minutes": 0,
- "thursday_minutes": 0,
- "total_minutes": 0,
- "tuesday_minutes": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "wednesday_minutes": 0,
- "workweek_membership_ids": [
- "string"
]
}
}
}
The response will contain no content and an HTTP 204 status code if the request was successful, or a standard Kantata OX error message explaining why the object could not be deleted.
Workweek Membership has been deleted.
Bad Request
Unauthorized request
Forbidden request
Page Not Found
Unprocessable Entity
Service is unavailable
{- "errors": [
- {
- "type": "string",
- "message": "string"
}
]
}