Change of description
This endpoint is deprecated.
POST
/api/RPC.common.Api.Po.changeDescription?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Order ID |
numrequired | String | Purchase order # |
descriptionrequired | String | Description |
internal_descriptionrequired | String | Internal description |
Request example
Change Description By Num:
{
"data" : [
{
"description" : "Lorem Ipsum Description",
"internal_description" : "Lorem Ipsum Internal Description",
"num" : "PO10000222"
}
]
}
Change Description By Id:
{
"data" : [
{
"id" : 1137014182,
"description" : "Lorem Ipsum Description",
"internal_description" : "Lorem Ipsum Internal Description"
}
]
}cURL
Change Description By Num:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "description" : "Lorem Ipsum Description", "internal_description" : "Lorem Ipsum Internal Description", "num" : "PO10000222" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Po.changeDescription?token=<TOKEN>"
Change Description By Id:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "id" : 1137014182, "description" : "Lorem Ipsum Description", "internal_description" : "Lorem Ipsum Internal Description" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Po.changeDescription?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"result" : [
{
"num" : "PO10000222",
"id" : 1137014182,
"rel_trans" : [
{
"type" : "expense_invoice",
"rel_trans_id" : 1137014568,
"for_date" : "2024-03-14",
"num" : 347564678469,
"trans_id" : 1137014182
},
{
"type" : "store_in",
"for_date" : "2024-03-14",
"rel_trans_id" : 1137014194,
"num" : "STI1000220",
"trans_id" : 1137014182
}
],
"description" : null,
"createdon" : "2024-03-14 16:13:07",
"updatedon" : "2026-01-01 09:22:28",
"type" : "po",
"pos_name" : "",
"for_date" : "2024-03-14",
"for_date_formated" : "14.03.2024",
"type_action" : "po",
"internal_description" : null
}
]
}