Usuń definicję pola dodatkowego
DELETE
/api/v2/AdditionalFieldsDefinitions
const url = 'https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFieldsDefinitions';const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ownerType":"example","fieldName":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFieldsDefinitions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ownerType": "example", "fieldName": "example" }'Usuwa definicję pola wraz ze wszystkimi jego wartościami we wszystkich obiektach danego typu. Używaj ostrożnie.
[USE WITH CAUTION] It deletes field definition with the values for all objects of given OwnerType
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
ownerType
string
fieldName
string
Examplegenerated
{ "ownerType": "example", "fieldName": "example"}object
ownerType
string
fieldName
string
Examplegenerated
{ "ownerType": "example", "fieldName": "example"}object
ownerType
string
fieldName
string
Examplegenerated
{ "ownerType": "example", "fieldName": "example"}object
ownerType
string
fieldName
string
object
ownerType
string
fieldName
string
object
ownerType
string
fieldName
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
boolean
Examplegenerated
trueServer Error

