sharedbudgets.update
Hromadna uprava sdilenych rozpoctu
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) User ID
|
|
} |
|
|
array |
requests ( |
|
struct |
{ |
|
int |
requestId |
(optional) request id for diagnostic
|
struct |
attributes { |
|
string |
name |
(optional) name of shared budget
|
int |
dayBudget |
(optional) height of daily budget in Kc
|
bool |
removeAllCids |
(optional) Should remove all campaign ids? (only work with empty cids array) (excludes: addCids, removeCids)
|
array |
addCids ( |
(optional) list of campaign ids, which will be set to shared budget (excludes: removeAllCids)
|
int
|
|
|
(optional) campaign id
|
|
) |
|
|
array |
removeCids ( |
(optional) list of campaign ids, which will unset shared budget (excludes: removeAllCids)
|
int
|
|
|
(optional) campaign id
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
Response
struct |
{ |
|
string |
statusMessage |
verbal description
|
struct |
diagnostics { |
(optional)
|
|
} |
|
|
|
} |
|
|
Response status codes:
List of all possible response status codes:
200: OK
206: Partially OK
301: User is serviced
400: Bad arguments
401: Invalid session
403: Access Denied
404: Not found
406: Bad values of attributes
413: Too many items requested.
429: Too many requests. Has to wait.
500: Server Error.
409: Conflict
Diagnostics:
List of all possible diagnostics:
add_remove_cids_conflict
budget_access_denied
campaign_access_denied
commonDayBudget_too_high
commonDayBudget_too_low
missing_struct_field
name_duplicity
name_missing
query_error
user_access_denied