v1

latestOpenAPI 3.1.02026-08-04164270844.7 KB
Custom Fields

Create a custom field

🔑

Required OAuth scope: customFields:write.

Creates a custom field.

post/api/v2/custom-fields

Headers

360-api-version'v2.0' required

The version of the API.

Request body

namestring required

The name of the custom field.

targetType'users' | 'contents' required

The resource type to which the custom field is linked.

type'string' | 'date' required

The type of the custom field.

Example request

{
  "name": "Department"
}

Response

Returns the created custom field.

namestring required

The name of the custom field.

targetType'users' | 'contents' required

The resource type to which the custom field is linked.

type'string' | 'date' required

The type of the custom field.

_idstring ObjectId required

The unique ID of the custom field.

Example response

{
  "name": "Department",
  "_id": "507f1f77bcf86cd799439011"
}