sitelinks.group.set
Assign sitelinks to provided groups.
If you want to remove any previous assignment, you can send empty array as sitelinkIds
attribute value.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
array |
groups ( |
|
struct |
{ |
|
array |
sitelinkIds ( |
To clean sitelinks send that parameter as empty array
|
int
|
|
|
(optional) Sitelink ID
|
|
) |
|
|
|
} |
|
|
|
) |
|
|
Response
struct |
{ |
|
int |
status |
Status code (see bellow)
|
string |
statusMessage |
Status code description
|
string |
session |
(optional) Refreshed session
|
array |
diagnostics ( |
(optional) Various diagnostics(warnings, errors, other information)
|
|
) |
|
|
|
} |
|
|
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:
group_access_denied
sitelink_access_denied
sitelink_deleted: Updates to the deleted sitelink are not allowed.
sitelink_duplicity
user_access_denied