API

Grant or update a user's custom section

POST/api/crm/v2/team.update_permission_section_customv2
operationId: team.updatePermissionSectionCustom

Authorization

api-token + language + role

Request body application/json

object
user_idintegerrequired

User ID

Example: 1

permission_section_idintegerrequired

Example: 112

readonly_enabledboolean

Updated only if the field is included in the request; therefore, setting the expiration date does not change the access mode. For new grants, defaults to false (full access), but the value becomes true if the section is read-only for the editor.

Example: false

date_expirationoneOfcan be null

Access expiration date for the section in the user's timezone; empty value means no limit. Updated only if the field is included in the request, so changing the mode does not reset it. Expired permissions are deleted automatically.

One of the options
string (DataTimeFormat)

Example: 17:45 06/05/2024

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject