---
title: "PUT /objecttypeattribute/{objectTypeId}/{id}"
method: PUT
path: "/objecttypeattribute/{objectTypeId}/{id}"
---

# PUT /objecttypeattribute/{objectTypeId}/{id}

`PUT /objecttypeattribute/{objectTypeId}/{id}`

Update an existing object type attribute

## Request body

- ObjectTypeAttributeUpdate — Input entity to update an object type attribute
  - `name` string
  - `label` boolean
  - `description` string
  - `type` integer — | Value | Description| | ----- | ----------- | | 0 | Default| | 1 | Object reference| | 2 | User| | 4 | Group | | 7 | Status |
  - `defaultTypeId` integer — | Id | Description (mandatory if type = Default) | | -- | ----------- | | -1 | None | | 0 | Text | | 1 | Integer | | 2 | Boolean | | 3 | Double | | 4 | Date | | 5 | Time | | 6 | DateTime | | 7 | Url | | 8 | Email | | 9 | Textarea | | 10 | Select | | 11 | IP Address |
  - `typeValue` string — It is mandatory for Type = Object reference and should point to the referenced object type id
  - `typeValueMulti` string[] — Valid for Type User. The Jira groups to restrict selection to
  - `additionalValue` string — Valid for Type Url, User, Object and Confluence. For Url (DISABLED, ENABLED), for Object (ReferenceTypeId), for User (SHOW_PROFILE, HIDE_PROFILE), for Confluence (Confluence Space Id). It is mandatory for Type = Object reference
  - `minimumCardinality` integer — Valid for Type Email, Select, Object, User, Group, Version and Project
  - `maximumCardinality` integer — Valid for Type Email, Select, Object, User, Group, Version and Project
  - `suffix` string — Valid for Integer and Double object type attributes
  - `includeChildObjectTypes` boolean — Valid for Type = Object reference and describes if children object types should be included in the selectable objects as well
  - `hidden` boolean — Hide the object type attributes for Assets Users
  - `uniqueAttribute` boolean — Should the values be unique for object attributes associated with this object type attribute
  - `summable` boolean — Valid for Type Integer and Double. Should a sum be included in the view
  - `regexValidation` string — Valid for Type Text and Email
  - `qlQuery` string — Valid for Type object reference. Allows specifying an AQL query to restrict which objects are selectable.
  - `iql` string — Deprecated. Use `qlQuery` instead. Valid for Type object reference.
  - `options` string — Valid for Type Select. A comma separated list of all chosable options

## Response `200`

- ObjectTypeAttribute — The definition of the attribute that is associated with an object type
  - `workspaceId` string, required
  - `globalId` string, required
  - `id` string, required
  - `objectType` ObjectType — The Assets object type
    - `workspaceId` string, required
    - `globalId` string, required
    - `id` string, required
    - `name` string, required
    - `description` string
    - `icon` Icon, required — A visual representation of something, usually associated as the icon of an object type
      - `id` string, required
      - `name` string, required
      - `url16` string, required — A url to the icon to display with small resolution
      - `url48` string, required — A url to the icon to display with large resolution
    - `position` integer, required
    - `created` string, date-time, required
    - `updated` string, date-time, required
    - `objectCount` integer, required
    - `parentObjectTypeId` integer — The id of the parent object type
    - `type` integer — The type of the attribute
    - `objectSchemaId` string, required
    - `inherited` boolean, required — Describes if this object type is configured for inheritance i.e. it's children inherits the attributes of this object type
    - `abstractObjectType` boolean, required
    - `parentObjectTypeInherited` boolean, required — Describes if this object types parent is inherited i.e. this object type has attributes that are inherited from one or more parents
  - `name` string
  - `label` boolean, required
  - `type` integer — | Value | Description| | ----- | ----------- | | 0 | Default| | 1 | Object reference| | 2 | User| | 4 | Group | | 7 | Status |
  - `description` string
  - `defaultType` DefaultType — | Id | Description | | -- | ----------- | | -1 | None | | 0 | Text | | 1 | Integer | | 2 | Boolean | | 3 | Double | | 4 | Date | | 5 | Time | | 6 | DateTime | | 7 | Url | | 8 | Email | | 9 | Textarea | | 10 | Select | | 11 | IP Address |
    - `id` integer, required
    - `name` string, required
  - `typeValue` string
  - `typeValueMulti` string[]
  - `additionalValue` string
  - `referenceType` ReferenceType
    - `workspaceId` string, required
    - `globalId` string, required
    - `id` string
    - `name` string, required
    - `description` string
    - `color` string
    - `url16` string
    - `removable` boolean
    - `objectSchemaId` string
    - `cdmData` ReferenceTypeCdmData
      - `types` ReferenceTypeCdmType[]
        - `key` string
        - `version` integer
        - `opinionated` boolean
  - `referenceObjectTypeId` string
  - `referenceObjectType` ObjectType — The Assets object type
    - `workspaceId` string, required
    - `globalId` string, required
    - `id` string, required
    - `name` string, required
    - `description` string
    - `icon` Icon, required — A visual representation of something, usually associated as the icon of an object type
      - `id` string, required
      - `name` string, required
      - `url16` string, required — A url to the icon to display with small resolution
      - `url48` string, required — A url to the icon to display with large resolution
    - `position` integer, required
    - `created` string, date-time, required
    - `updated` string, date-time, required
    - `objectCount` integer, required
    - `parentObjectTypeId` integer — The id of the parent object type
    - `type` integer — The type of the attribute
    - `objectSchemaId` string, required
    - `inherited` boolean, required — Describes if this object type is configured for inheritance i.e. it's children inherits the attributes of this object type
    - `abstractObjectType` boolean, required
    - `parentObjectTypeInherited` boolean, required — Describes if this object types parent is inherited i.e. this object type has attributes that are inherited from one or more parents
  - `editable` boolean
  - `system` boolean
  - `indexed` boolean, required — Describes if this object type attribute is indexed. For an indexed attribute the AQL search will be faster, but this will affect memory consumption.
  - `sortable` boolean
  - `summable` boolean
  - `minimumCardinality` integer
  - `maximumCardinality` integer
  - `suffix` string
  - `removable` boolean
  - `objectAttributeExists` boolean
  - `hidden` boolean
  - `includeChildObjectTypes` boolean
  - `uniqueAttribute` boolean
  - `regexValidation` string
  - `iql` string — Deprecated. Use `qlQuery` instead.
  - `qlQuery` string
  - `options` string
  - `position` integer, required

## Other responses

- `400` — The system cannot fulfill the request due to validation errors. See the response body for more details.
- `401` — Client must be authenticated to access this resource.
- `404` — Representation of the target resource do not exist
- `500` — Something went wrong. Please try again later. If the error persists, contact our support team.

---

[API](https://skmtc.net/atlassian/apis/rest.md) · [All operations](https://skmtc.net/atlassian/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/rest/versions/07137e668210/schema)
