Admin/SetGroupPermissionList

This method saves the job and task index pair list for which the group has permission.

URI

http://{IP address}:{Port}/ServicewTM.svc/Admin/SetGroupPermissionList/{application}/{groupInd}

The URI for this method includes the following path elements:
Table 1. Path elements for the POST method
Name Type Required? Description
{application} String Yes The name of the application for which the permissions list is to be saved.
{groupInd} String Yes The index for a group is the value in the gr_ind column of the tmgroup table in the Admin database.

Request content

The request content contains the job and task index pair list for which the group has permission.
Table 2. Request elements for the POST SetGroupPermissionList method
Name Description
Job The value of jb_ind from the job table of the Administration database.
Task The value of ts_ind from the tasks table of the Administration database.

Response content

The response for this method contains no content.

This method returns one of the following response codes.
Table 3. Response codes for the POST SetGroupPermissionList method
Response Code Description
200 OK The request was successful.
400 Bad Request The request was not understood by the service because of malformed syntax.
401 Unauthorized The request requires user authentication. If the request included valid credentials, the 401 response indicates that authorization was refused for those credentials.
405 Method Not Allowed The method that is specified in the Request-Line is not allowed for the resource that is identified by the Request-URI. The response must include an Allow header that contains a list of valid methods for the requested resource.
411 Length Required The service refuses to accept the request without a defined Content-Length. The client can repeat the request if it adds a valid Content-Length header field that contains the length of the message body in the request message.
500 Internal Error An unexpected condition was encountered that prevented the service from fulfilling the request.

POST SetGroupPermissionList method JSON request example

{"Permissions":[{"Job":"10","Task":"12"}]}
{"Permissions":[{"Job":"10","Task":"14"}]}
{"Permissions":[{"Job":"10","Task":"15"}]}
{"Permissions":[{"Job":"10","Task":"16"}]} 

POST SetGroupPermissionList method XML request examples

<PermissionList><Permissions>
  <PermissionList.JobTaskPair><Job>10</Job><Task>12</Task></PermissionList.JobTaskPair>
  <PermissionList.JobTaskPair><Job>10</Job><Task>14</Task></PermissionList.JobTaskPair>
  <PermissionList.JobTaskPair><Job>10</Job><Task>15</Task></PermissionList.JobTaskPair>
  <PermissionList.JobTaskPair><Job>10</Job><Task>16</Task></PermissionList.JobTaskPair>
</Permissions></PermissionList>