---
title: "Create a predefined attribute. You must be a organization admin to perform this operation."
method: POST
path: "/api/v4/shipmentattributedefinitions"
tags: ["Shipment Attributes"]
---

# Create a predefined attribute. You must be a organization admin to perform this operation.

`POST /api/v4/shipmentattributedefinitions`

## Request

- Base URL: `https://na12.api.project44.com`
- URL: `https://na12.api.project44.com/api/v4/shipmentattributedefinitions`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/api/v4/oauth2/token`
- TypeScript: <https://skmtc.dev/project44/apis/project44-rest-api/docs/api/v4/shipmentattributedefinitions/post.ts> (a function with typed inputs; its response is checked against the schema)

The name for an attribute. Must be unique.  

<br/><h4><b>Required Fields</h4></b>
<ul><li> name </li></ul>

## Request body

- ShipmentAttributeDefinition: Name of an attribute to be defined
  - `name` string: The name for an attribute. Must be unique.

## Response `200`

OK

- ShipmentAttributeDefinitionConfirmation: Name of an attribute that has been predefined through the api/v4/shipmentattributedefinitions endpoint
  - `infoMessages` Message[]: System messages and messages from the capacity provider with severity 'INFO' or 'WARNING'. No messages with severity 'ERROR' will be returned here.
    - `diagnostic` string: Diagnostic information, often originating from the capacity provider.
    - `message` string: Message informational text.
    - `severity` 'ERROR' | 'WARNING' | 'INFO': The severity of this message.
    - `source` 'SYSTEM' | 'CAPACITY_PROVIDER': The originator of this message -- either project44 (the system) or the capacity provider.
  - `shipmentAttributeDefinition` ShipmentAttributeDefinition: Name of an attribute to be defined
    - `name` string: The name for an attribute. Must be unique.

## Other responses

- `400`: Invalid request
- `401`: Invalid or missing credentials
- `403`: User not authorized to perform this operation

---

[API](https://skmtc.dev/project44/apis/project44-rest-api.md) - [All operations](https://skmtc.dev/project44/apis/project44-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/project44/apis/project44-rest-api/revisions/cdf9675e2294?raw)
