Ustaw domyślne stanowisko pakowania
PUT
/api/v3/Users/me/pack-station
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Users/me/pack-station';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"packStationId":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Users/me/pack-station \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "packStationId": 1 }'Ustawia stanowisko pakowania bieżącego użytkownika; wartość null czyści ustawienie.
Any authenticated user can set their own packing station. Pass a null packStationId to clear it.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”The packing station selection
object
packStationId
integer format: int64
Examplegenerated
{ "packStationId": 1}object
packStationId
integer format: int64
Examplegenerated
{ "packStationId": 1}object
packStationId
integer format: int64
Examplegenerated
{ "packStationId": 1}object
packStationId
integer format: int64
object
packStationId
integer format: int64
object
packStationId
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”No Content
Bad Request
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Unauthorized
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

