Disables a user in an account
This endpoint returns structured Account 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 account_memberships top-level JSON key. Please see our Response Format section for more information.
Any of the below associations can be included in your request by providing the include param, e.g. include=association1,association2.
backup_approver_associations(BackupApproverAssociation) - Retrieves the backup approver associations for the user this account membership is for, which represent a backup time approver for a specific date range. The response will includebackup_approver_association_ids, which references the data in thebackup_approver_associationstop-level key.cost_rates(CostRate) - Retrieves all the cost rates in different currencies for the user this account membership is for. The response will includecost_rate_ids, which references the data in thecost_ratestop-level key.default_role(Role) - Retrieves the default role, if any, for this account membership. The response will includedefault_role_id, which references the data in therolestop-level key.effective_workweek(Workweek) - Retrieves the workweek that is in effect today for the user this account membership is for. The response will includeeffective_workweek_id, which references the data in theworkweekstop-level key.future_billable_utilizations(BillableUtilization) - Retrieves the future billable utilizations for the user this account membership is for. The response will includefuture_billable_utilization_ids, which references the data in thebillable_utilizationstop-level key.managees(User) - Retrieves the direct reports of the user this account membership is for. The response will includemanagee_ids, which references the data in theuserstop-level key.manager(User) - Retrieves the manager of the user this account membership is for. The response will includemanager_id, which references the data in theuserstop-level key.possible_managees(User) - Retrieves a list of users who can become the direct reports of the user this account membership is for. The response will includepossible_managee_ids, which references the data in theuserstop-level key.possible_managers(User) - Retrieves a list of users who can be set as the manager of the user this account membership is for. The response will includepossible_manager_ids, which references the data in theuserstop-level key.skill_memberships(SkillMembership) - Retrieves the skill memberships for the user this account membership is for, which represent skills assigned to a user. The response will includeskill_membership_ids, which references the data in theskill_membershipstop-level key.user(User) - Retrieves the user for this account membership. The response will includeuser_id, which references the data in theuserstop-level key.
- https://api.mavenlink.com/api/v1https://api.mavenlink.com/api/v1/account_memberships/{id}/disable
curl -i -X PUT \
'https://api.mavenlink.com/api/v1/account_memberships/{id}/disable?include=string&optional_fields=can_log_in'Response
{ "count": 0, "meta": { "count": 0, "page_count": 0, "page_number": 0, "page_size": 0 }, "results": [ { "key": "string", "id": "string" } ], "account_memberships": { "property1": { "backup_approver_association_ids": [ "string" ], "bill_rate_in_cents": 0, "billability_target": 0, "can_create_workspace": true, "can_log_in": true, "can_view_reports": true, "collaborator_only_license": true, "cost_rate_ids": [ "string" ], "cost_rate_in_cents": 0, "created_at": "2019-08-24T14:15:22Z", "default_read_only": true, "default_role_id": "string", "disabled_at": "2019-08-24T14:15:22Z", "effective_workweek_id": "string", "future_billable_utilization_ids": [ "string" ], "is_administrator": true, "is_backup_approver": true, "is_owner": true, "is_project_lead": true, "is_punch_clock_user": true, "managee_ids": [ "string" ], "manager_can_approve": true, "manager_can_edit_skills": true, "manager_id": "string", "non_participant": true, "permission": "string", "possible_managee_ids": [ "string" ], "possible_manager_ids": [ "string" ], "should_show_alert_on_timesheet_submission": true, "skill_membership_ids": [ "string" ], "updated_at": "2019-08-24T14:15:22Z", "user_id": "string" }, "property2": { "backup_approver_association_ids": [ "string" ], "bill_rate_in_cents": 0, "billability_target": 0, "can_create_workspace": true, "can_log_in": true, "can_view_reports": true, "collaborator_only_license": true, "cost_rate_ids": [ "string" ], "cost_rate_in_cents": 0, "created_at": "2019-08-24T14:15:22Z", "default_read_only": true, "default_role_id": "string", "disabled_at": "2019-08-24T14:15:22Z", "effective_workweek_id": "string", "future_billable_utilization_ids": [ "string" ], "is_administrator": true, "is_backup_approver": true, "is_owner": true, "is_project_lead": true, "is_punch_clock_user": true, "managee_ids": [ "string" ], "manager_can_approve": true, "manager_can_edit_skills": true, "manager_id": "string", "non_participant": true, "permission": "string", "possible_managee_ids": [ "string" ], "possible_manager_ids": [ "string" ], "should_show_alert_on_timesheet_submission": true, "skill_membership_ids": [ "string" ], "updated_at": "2019-08-24T14:15:22Z", "user_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" ] } }, "roles": { "property1": { "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "external_reference_ids": [ "string" ], "name": "string", "updated_at": "2019-08-24T14:15:22Z" }, "property2": { "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "external_reference_ids": [ "string" ], "name": "string", "updated_at": "2019-08-24T14:15:22Z" } }, "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" ] } }, "skill_memberships": { "property1": { "cached_skill_name": "string", "created_at": "2019-08-24T14:15:22Z", "creator_id": "string", "level": 0, "max_level": 0, "skill_id": "string", "updated_at": "2019-08-24T14:15:22Z", "user_id": "string" }, "property2": { "cached_skill_name": "string", "created_at": "2019-08-24T14:15:22Z", "creator_id": "string", "level": 0, "max_level": 0, "skill_id": "string", "updated_at": "2019-08-24T14:15:22Z", "user_id": "string" } }, "backup_approver_associations": { "property1": { "approver_id": "string", "backup_approver_id": "string", "end_date": "2019-08-24T14:15:22Z", "start_date": "2019-08-24T14:15:22Z" }, "property2": { "approver_id": "string", "backup_approver_id": "string", "end_date": "2019-08-24T14:15:22Z", "start_date": "2019-08-24T14:15:22Z" } }, "cost_rates": { "property1": { "account_membership_id": 0, "amount_in_subunits": 0, "created_at": "2019-08-24T14:15:22Z", "currency": "string", "in_use": true, "updated_at": "2019-08-24T14:15:22Z" }, "property2": { "account_membership_id": 0, "amount_in_subunits": 0, "created_at": "2019-08-24T14:15:22Z", "currency": "string", "in_use": true, "updated_at": "2019-08-24T14:15:22Z" } }, "billable_utilizations": { "property1": { "account_membership_id": "string", "created_at": "2019-08-24T14:15:22Z", "creator_id": "string", "effective_date": "2019-08-24", "target": 0, "updated_at": "2019-08-24T14:15:22Z" }, "property2": { "account_membership_id": "string", "created_at": "2019-08-24T14:15:22Z", "creator_id": "string", "effective_date": "2019-08-24", "target": 0, "updated_at": "2019-08-24T14:15:22Z" } } }