---
agentTools:
  projectIndex: https://asset-management-for-jira.readme.io/llms.txt
---

# /v1/accessories/{id}

Update specific accessory by id

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/v1/accessories/{id}": {
      "put": {
        "responses": {
          "201": {
            "description": "",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/AccessoryExternalSerializer"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/AccessoryRequest"
        },
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Update specific accessory by id",
        "tags": [
          "accessory"
        ]
      }
    }
  },
  "info": {
    "title": "Asset Management for Jira API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "//api.assetmanagementforjira.com"
    }
  ],
  "components": {
    "requestBodies": {
      "AccessoryRequest": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/AccessoryRequest"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          }
        }
      },
      "LocationSerializer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          }
        }
      },
      "UserExternalSerializer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          },
          "jira_id": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          }
        }
      },
      "AccessoryFieldValues": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of the Accessory Field"
          },
          "value": {
            "type": "string",
            "description": "Value of the Accessory Field"
          }
        },
        "required": [
          "id",
          "value"
        ]
      },
      "AccessoryRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the Accessory"
          },
          "total_quantity": {
            "type": "integer",
            "description": "Total quantity available"
          },
          "location_id": {
            "type": "integer",
            "description": "ID of location associated with Accessory"
          },
          "order_number": {
            "type": "string",
            "description": "Order number"
          },
          "purchase_cost": {
            "type": "string",
            "description": "Purchase cost"
          },
          "vendor": {
            "type": "string",
            "description": "Vendor name"
          },
          "purchase_date": {
            "type": "string",
            "format": "date-time",
            "description": "Purchase date"
          },
          "custom_fields": {
            "description": "List of Accessory Field values",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccessoryFieldValues"
            }
          }
        },
        "required": [
          "name",
          "total_quantity"
        ]
      },
      "AccessoryCheckoutSerializer": {
        "type": "object",
        "properties": {
          "loanee": {
            "$ref": "#/components/schemas/UserExternalSerializer"
          },
          "checkout_status": {},
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id": {
            "type": "integer"
          },
          "authentication_id": {
            "type": "integer"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "loanee_text": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          },
          "loanee_id": {
            "type": "integer",
            "nullable": true
          },
          "accessory_id": {
            "type": "integer"
          }
        },
        "required": [
          "accessory_id",
          "authentication_id"
        ]
      },
      "AccessoryExternalSerializer": {
        "type": "object",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/LocationSerializer"
          },
          "checkouts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccessoryCheckoutSerializer"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          },
          "total_quantity": {
            "type": "integer",
            "nullable": true
          },
          "order_number": {
            "type": "string",
            "nullable": true
          },
          "purchase_date": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "purchase_cost": {
            "type": "string",
            "nullable": true
          },
          "vendor": {
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 146,
      "2": 213,
      "3": 62,
      "4": 71,
      "5": 81,
      "6": 87,
      "7": 0,
      "8": 170,
      "9": 87,
      "10": 91,
      "11": 222
    }
  }
}
```