Przejdź do głównej zawartości

Zapisz link do zewnętrznego pliku w polu

POST
/api/v2/AdditionalFields/File/Link
curl --request POST \
--url https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFields/File/Link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "objectId": 1, "ownerType": "example", "fieldName": "example", "id": 1, "fileUrl": "example" }'

Zapisuje podany URL zewnętrznego pliku jako wartość pola dodatkowego, bez przesyłania pliku.

Instead of uploading the file, this stores a provided link as the field value.

object
objectId
integer format: int64
ownerType
string
nullable
fieldName
string
nullable
id
integer format: int64
nullable
fileUrl
string
nullable
Examplegenerated
{
"objectId": 1,
"ownerType": "example",
"fieldName": "example",
"id": 1,
"fileUrl": "example"
}

Created

Typ treściapplication/json
object
fileUrl
string
nullable
Examplegenerated
{
"fileUrl": "example"
}

Bad Request

Typ treściapplication/json
object
error
string
nullable
Examplegenerated
{
"error": "example"
}

Server Error