Create Request Attachment

Create a request attachment.

post
Path parameters
requestIdstringRequired
Query parameters
languagestringOptional
Body
filestring · binaryOptional
Responses
201
Created
application/json
post
POST /public/v1/commerce/requests/{requestId}/attachments HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 67

{
  "attachment": {
    "Name": "text",
    "Description": "text"
  },
  "file": "binary"
}
{
  "id": "text",
  "audit": {
    "created": {
      "at": "2025-06-22T13:55:32.270Z",
      "by": {
        "0": "[",
        "1": "C",
        "2": "i",
        "3": "r",
        "4": "c",
        "5": "u",
        "6": "l",
        "7": "a",
        "8": "r",
        "9": " ",
        "10": "R",
        "11": "e",
        "12": "f",
        "13": "e",
        "14": "r",
        "15": "e",
        "16": "n",
        "17": "c",
        "18": "e",
        "19": "]"
      }
    },
    "updated": {
      "at": "2025-06-22T13:55:32.270Z",
      "by": {
        "0": "[",
        "1": "C",
        "2": "i",
        "3": "r",
        "4": "c",
        "5": "u",
        "6": "l",
        "7": "a",
        "8": "r",
        "9": " ",
        "10": "R",
        "11": "e",
        "12": "f",
        "13": "e",
        "14": "r",
        "15": "e",
        "16": "n",
        "17": "c",
        "18": "e",
        "19": "]"
      }
    }
  },
  "$meta": {
    "omitted": [
      "text"
    ]
  },
  "name": "text",
  "type": "text",
  "description": "text",
  "filename": "text",
  "size": 1,
  "contentType": "text",
  "request": {
    "id": "text",
    "audit": {
      "created": {
        "at": "2025-06-22T13:55:32.270Z",
        "by": {
          "0": "[",
          "1": "C",
          "2": "i",
          "3": "r",
          "4": "c",
          "5": "u",
          "6": "l",
          "7": "a",
          "8": "r",
          "9": " ",
          "10": "R",
          "11": "e",
          "12": "f",
          "13": "e",
          "14": "r",
          "15": "e",
          "16": "n",
          "17": "c",
          "18": "e",
          "19": "]"
        }
      },
      "updated": {
        "at": "2025-06-22T13:55:32.270Z",
        "by": {
          "0": "[",
          "1": "C",
          "2": "i",
          "3": "r",
          "4": "c",
          "5": "u",
          "6": "l",
          "7": "a",
          "8": "r",
          "9": " ",
          "10": "R",
          "11": "e",
          "12": "f",
          "13": "e",
          "14": "r",
          "15": "e",
          "16": "n",
          "17": "c",
          "18": "e",
          "19": "]"
        }
      }
    },
    "$meta": {
      "omitted": [
        "text"
      ]
    },
    "externalId": "text",
    "name": "text",
    "status": "text",
    "error": "text",
    "from": {
      "id": "text",
      "icon": "text",
      "type": "text",
      "status": "text",
      "name": "text"
    },
    "requester": {
      "id": "text",
      "icon": "text",
      "name": "text"
    },
    "assignee": {
      "id": "text",
      "icon": "text",
      "name": "text"
    },
    "to": {
      "id": "text",
      "icon": "text",
      "type": "text",
      "status": "text",
      "name": "text"
    },
    "product": {
      "id": "text",
      "name": "text",
      "externalIds": {
        "operations": "text",
        "defaultErpItem": "text"
      },
      "icon": "text",
      "status": "text"
    },
    "parameters": [
      {
        "id": "text",
        "audit": {
          "0": "[",
          "1": "C",
          "2": "i",
          "3": "r",
          "4": "c",
          "5": "u",
          "6": "l",
          "7": "a",
          "8": "r",
          "9": " ",
          "10": "R",
          "11": "e",
          "12": "f",
          "13": "e",
          "14": "r",
          "15": "e",
          "16": "n",
          "17": "c",
          "18": "e",
          "19": "]"
        },
        "externalId": "text",
        "title": "text",
        "description": "text",
        "value": "text",
        "displayOrder": 1,
        "constraints": {
          "isReadonly": true,
          "isOptional": true
        },
        "typeOptions": null,
        "errorMessage": "text",
        "errorCode": "text",
        "request": {
          "0": "[",
          "1": "C",
          "2": "i",
          "3": "r",
          "4": "c",
          "5": "u",
          "6": "l",
          "7": "a",
          "8": "r",
          "9": " ",
          "10": "R",
          "11": "e",
          "12": "f",
          "13": "e",
          "14": "r",
          "15": "e",
          "16": "n",
          "17": "c",
          "18": "e",
          "19": "]"
        }
      }
    ],
    "messages": [
      {
        "id": "text",
        "audit": {
          "0": "[",
          "1": "C",
          "2": "i",
          "3": "r",
          "4": "c",
          "5": "u",
          "6": "l",
          "7": "a",
          "8": "r",
          "9": " ",
          "10": "R",
          "11": "e",
          "12": "f",
          "13": "e",
          "14": "r",
          "15": "e",
          "16": "n",
          "17": "c",
          "18": "e",
          "19": "]"
        },
        "$meta": {
          "omitted": [
            "text"
          ]
        },
        "visibility": {
          "client": true,
          "operations": true,
          "vendor": true
        },
        "account": {
          "id": "text",
          "icon": "text",
          "type": "text",
          "status": "text",
          "name": "text"
        },
        "type": "text",
        "content": "text",
        "request": {
          "0": "[",
          "1": "C",
          "2": "i",
          "3": "r",
          "4": "c",
          "5": "u",
          "6": "l",
          "7": "a",
          "8": "r",
          "9": " ",
          "10": "R",
          "11": "e",
          "12": "f",
          "13": "e",
          "14": "r",
          "15": "e",
          "16": "n",
          "17": "c",
          "18": "e",
          "19": "]"
        }
      }
    ]
  }
}

Last updated

Was this helpful?