Zaktualizuj połączenie z usługą druku
PUT
/api/v2/accounts
const url = 'https://twoja-instancja-cloudprint-api.enterprise.sellrocket.pl/api/v2/accounts';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":1,"name":"example","token":"example"}'};
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-cloudprint-api.enterprise.sellrocket.pl/api/v2/accounts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": 1, "name": "example", "token": "example" }'Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
connectionId
wymagane
integer format: int64
name
wymagane
string
token
string
Examplegenerated
{ "connectionId": 1, "name": "example", "token": "example"}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
connectionId
integer format: int64
name
string
token
string
object
connectionId
integer format: int64
name
string
token
string
Examplegenerated
{ "connectionId": 1, "name": "example", "token": "example"}object
connectionId
integer format: int64
name
string
token
string
Examplegenerated
{ "connectionId": 1, "name": "example", "token": "example"}Unauthorized
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
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"}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"}
