Skip to main content
POST
/
v0
/
tag-groups
/
{groupId}
/
tags
Creates a new tag sub-resource under the given tag group
curl --request POST \
  --url https://external.pleo.io/v0/tag-groups/{groupId}/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '
{
  "archived": false,
  "code": "12345",
  "name": "Lunch allowance"
}
'
{
  "data": {
    "archived": false,
    "code": "12345",
    "createdAt": "2023-08-23T03:11:48.000Z",
    "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "id": "c04c7e9e-6c15-11ee-b962-0242ac120002",
    "updatedAt": "2023-08-23T03:11:48.000Z",
    "name": "Lunch allowance"
  }
}

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

Body

application/json;charset=UTF-8
archived
boolean
required

This tag is not used anymore

Example:

false

code
string
required

External identifier of the Tag

Example:

"12345"

name
string

User readable name that is used for the possible value within a tag group on an expense

Example:

"Lunch allowance"

Response

default - application/json;charset=UTF-8

default response

data
object
required