subscription_member_set ()
Function prototype | subscription_member_set ( session, member ) |
---|---|
API Version | All |
SOAP, REST (Since API Version 2.7.27) |
Description
Links a user/team to a subscription with the selected roles.
The member provided is added as a member of the SUBSCRIPTION
Required permissions: The active user must have role TEAM_MANAGER in the SUBSCRIPTION’s owner TEAM. Otherwise an INSUFFICIENT_PRIVILEGES error will be returned.
Input parameters: |
|
Output parameters: |
|
Request example
subscription_member_set ( “LCAAAAAAAAAAAA”,
"<?xml version="1.0" encoding="UTF-8"?>
<member>
<ref>TEAM/801</ref>
<subscription>
<ref>762</ref>
</subscription>
<role_list>
<role>
<ref>24</ref>
</role>
</role_list>
</member>")
Response
The response format is XML when the function has been invoked via the SOAP API, and JSON when it has been invoked via the REST API
Return Error codes
ERROR CODE |
|
---|---|
INVALID_TOKEN | The session token provided is not valid |
SUBSCRIPTION.NOT_FOUND | The SUBSCRIPTION reference provided does not correspond to an existing SUBSCRIPTION |
TEAM.NOT_FOUND | The TEAM member reference provided does not correspond to a valid TEAM |
USER.NOT_PRESENT | The USER member reference provided does not correspond to a valid USER |
INSUFFICIENT_PRIVILEGES | The session user does not have the necessary privileges to manage the members of the SUBSCRIPTION |