sharedbudgets.create
Mass creation of shared budgets
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 |
name of shared budget
|
| int |
dayBudget |
height of daily budget in Kc
|
| array |
addCids ( |
(optional) list of campaign ids, which user
|
|
int
|
|
|
(optional) campaign id
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
Response
| struct |
{ |
|
| int |
status |
return code kod
|
| 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