Create label

POST {{baseUrl}}/api/v1/labels

This API creates a label in your help center.

OAuth Scope

  • Desk.contacts.CREATE
  • Desk.settings.CREATE

Attributes

Attribute NameData TypeDescription
name (required)<String>
Name of the label
logoId<long>
ID of the logo set for the label
helpCenterId (required)<long>
ID of the help center in which the label must be created
preferences<JSONObject>
Visual preferences related to the label/logo

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;modifiedTime&quot;:&quot;2017-09-19T04:58:50.000Z&quot;,&quot;preferences&quot;:{&quot;shape&quot;:&quot;ROUNDED&quot;,&quot;bgColor&quot;:&quot;#FFEE&quot;,&quot;textColor&quot;:&quot;#FFEE&quot;},&quot;creator&quot;:{&quot;photoURL&quot;:&quot;https://desk.zoho.com/portal/api/user/6000000015895/photo?orgId=143315&quot;,&quot;name&quot;:&quot;SupportAdmin&quot;,&quot;id&quot;:&quot;310975130121&quot;},&quot;modifier&quot;:{&quot;photoURL&quot;:&quot;https://desk.zoho.com/portal/api/user/6000000015895/photo?orgId=143315&quot;,&quot;name&quot;:&quot;SupportAdmin&quot;,&quot;id&quot;:&quot;310975130121&quot;},&quot;name&quot;:&quot;Pro Customer&quot;,&quot;count&quot;:&quot;0&quot;,&quot;createdTime&quot;:&quot;2017-09-19T04:58:50.000Z&quot;,&quot;id&quot;:&quot;310975130110&quot;,&quot;helpCenterId&quot;:&quot;310975130119&quot;,&quot;logoUrl&quot;:&quot;https://desk.zoho.com/portal/api/publicImages/310975130121?portalId=5c9470fcc808cc98932703e28221d6c302e105dc4da8b23fafb6719abeecaa48&quot;}