Create tag group

Create a new accounting tag group with its tag values. Returns the id and name of the new tag group. While multi-org is on, the tag group's organization (the one named in the body, else your single organization, else the default) needs Accounting Settings at every campus of it (400 otherwise).

Required permission: Accounting Settings

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The details of the tag group

string | null
required

The tag group's name.

values
array of objects | null
required

The tags in the group, in display order. At least one active value is required and names must be unique within the group. On writes, the list replaces the group's values: values sent without an id are created, and existing values omitted from the list are deleted unless they are referenced by a journal entry.

values*
string | null

The tag group's description.

string | null

The tag group's display color, as a hex value.

boolean

Whether a tag from the group is required on journal entry line items.

boolean

Whether the tag group is active.

int32

The tag group's display order.

organization
object | null

The organization whose books this tag group and its tags belong to; present only while two or more organizations exist. Its tags go only on journal entry lines of that organization, and it is required only on that organization's entries. On writes, provide the id; omitted on a create, the group goes to the caller's single organization, else the default organization; omitted on an update, it stays where it is. A group whose tags are in use cannot move organizations. A create needs Accounting Settings at every campus of its organization, named or not; a move needs it at every campus of both the current organization and the new one. Ignored while there is one organization.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json