Skip to main content
POST
/
v0
/
tag-groups
/
{groupId}
/
dimensions
Creates a new tag group dimension
curl --request POST \
  --url https://external.pleo.io/v0/tag-groups/{groupId}/dimensions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '
{
  "code": "5524f270-6c21-11ee-b962-0242ac120002",
  "displayOrder": 1,
  "name": "Project",
  "visible": false
}
'
{
  "data": {
    "code": "5524f270-6c21-11ee-b962-0242ac120002",
    "createdAt": "2023-08-23T03:11:48.000Z",
    "displayOrder": 1,
    "groupId": "c04c7e9e-6c15-11ee-b962-0242ac120003",
    "id": "c04c7e9e-6c15-11ee-b962-0242ac120002",
    "name": "Project",
    "updatedAt": "2023-08-23T03:11:48.000Z",
    "visible": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

groupId
string<uuid>
required

Unique identifier of the Tag Group this dimension belongs to

Body

application/json;charset=UTF-8
code
string
required

External identifier of the Tag group Dimension used for mapping to accounting system

Example:

"5524f270-6c21-11ee-b962-0242ac120002"

displayOrder
integer<int32>
required

Determines the order in which the dimensions are displayed in the UI. Starts from 1

Example:

1

name
string
required

User readable name of Tag Group Dimension

Example:

"Project"

visible
boolean
required

Determines if this dimension is displayed in the UI

Example:

false

Response

default - application/json;charset=UTF-8

default response

data
object
required