Skip to main content

Bulk attributes by Id

POST 

/attributes/bulk/id

Before setting an attribute value for a specific resource, the attribute definition needs to be created. Usually, multiple attributes need to be created or updated at the same time which is useful to eliminate a lot of API requests. This endpoint is used for bulk processing of attribute definitions based on an Id.

The id field is required and when it is 0 a new attribute will be created, otherwise the attribute definition will be updated. When updating, although part of the request body, the fields name, class and type are ignored.

Request

Body

array

  • Array [

  • class string

    descriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • group string
    id number
    isHidden boolean
    isPublic boolean
    isSearchable boolean
    isSystem boolean
    name string
    type string
    typeParam string

    units

    object[]

  • Array [

  • language string
    value string
  • ]

  • value

    object

    anyOf

    number

  • ]

Responses

Bulk attributes by Id - 200

Response Headers

  • Alt-Svc

    string

  • Via

    string

  • alt-svc

    string

  • content-length

    string

  • date

    string

  • return-format

    string

  • server

    string

  • x-request-id

    string

Schema

    data

    object[]

  • Array [

  • action string
    error string
    id number
    key number
    lookupKey string
    message string
    success boolean
  • ]

  • messages string[]
    total number
Loading...