Update Custom Columns

Updated 4 weeks ago ​by nussi

Overview

Endpoint is used for updating value of user defined PO column. In order to do that you must:

  • Be authenticated user

For information on how you can authenticate, see: Authentication

Endpoint

Example for such endpoint for TT server is https://tt.api.sellercloud.com/api/PurchaseOrders/{id}/CustomColumns

For your server endpoint will be:

https://{your_server_id}.api.sellercloud.com/api/PurchaseOrders/{id}/CustomColumns

Request

  • Method Type: HttpPut
  • Authorization: Use Bearer Token + token received from token authentication
  • Header info: Content-Type: application/json
  • Body data:

    Parameter

    Data Type

    Description

    Is Required

    id

    integer

    ID of existing PO

    Yes

    ColumnName

    string

    Name of existing column name. Mandatory.

    Yes

    Value

    string

    Value of custom columns. Mandatory.

    Yes

Example Request

{
"id": 1001,
"Model":
{
"ColumnName": "Some_Custom_Column",
"Value": "Test value"
}
}

Response

  • If server error appears, then response will be with status code 500 => Internal Server Error
  • If updating value of custom column is successful, status code will be OK 200


How did we do?