4.18j

TextMarks API V2 - AutoDoc: TextMarkManager / grant_comanager()

Method: grant_comanager() (POST) - Grant or revoke a role to a TextMark's co-manager (creating if necessary)

Package: TextMarkManager - Manage a TextMark owned by authenticated user (... View package)

Args:

Req? Name Type Description Test
REQ auth_user User User account / phone# used for login
REQ auth_pass Password Password
REQ tm TextMark TextMark keyword/TRI owned by auth_user
REQ user User User account / phone# to modify (co-manager of tm)
OPT api_key API Key API Key (Register here)
OPT name String Co-manager name alias to apply, or skip for none
OPT role String Name of role to grant or revoke, or skip for no grant
OPT grant Bool (0/1) Whether to grant (1) or revoke (0) the role

Test:


Docs:

  • This method grants (or revokes) roles to/from a TextMarks co-manager, creating an entry for the co-manager if none exists yet.
  • This method can also used to set a co-manager alias, which is a convenience for managers to keep track of their co-managers.
  • See delete_comanager() to delete co-managers.
  • See list_comanagers() to list co-managers assigned to TextMark.

Resp:

JSON response.head.rescode==0 for success, or error code otherwise.
JSON-P callback: (as 'jsonp' param, optional) (blank for none)

HTTP:

POST http://help.api2.textmarks.com//TextMarkManager/grant_comanager/

More:

This page documents a single API function grant_comanager() within the TextMarkManager package of the TextMarks Text Message API.
You may use the interactive form above to invoke this function and observe its actual JSON response.

More resources: