Skip to content
  • Auto
  • Light
  • Dark
Get Started

Create

Create Attribute Value
client.attributes.create(AttributeCreateParamsbody?, RequestOptionsoptions?): valueAttributeValueAttributeCreateResponse
post/api/v1/attributes

Create a new attribute value.

Parameters
bodyattributeTypeIdstringvaluestringAttributeCreateParams
Hide ParametersShow Parameters
attributeTypeIdstring
optional

The attributeTypeId field.

valuestring
optional

The value field.

Returns
AttributeCreateResponse

CreateAttributeValueResponse is the response for creating an attribute value.

Hide ParametersShow Parameters
valueidstringattributeTypeIdstringcreatedAtstringdeletedAtstringupdatedAtstringvaluestringAttributeValue
optional

AttributeValue is the value of an attribute of a defined type.

Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';

const client = new ConductoroneSDK({
  apiKey: 'My API Key',
});

const attribute = await client.attributes.create();

console.log(attribute.value);
200 Example
{
  "value": {
    "id": "id",
    "attributeTypeId": "attributeTypeId",
    "value": "value"
  }
}