AddProjectMembershipAdministrators

This method can be used for the following functionality: Add user(s) or group(s) as project membership administrators

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

POST /api/ss/project/{id}/member-admins HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Path

id (string)

Id of the project.

Example:

POST /api/ss/project/5eac95f1e594ea09107e9bb5/member-admins HTTP/1.1

Body

group_id (string)

Id of the group.

Example:

{
   "group_id": "..."
}

user_id (string)

Id of the user.

Example:

{
   "user_id": "..."
}

access_level_limit (string)

Must be one of the following: None, View, Upload, Edit

Example:

{
   "access_level_limit": "View"
}

add_user_method (string)

Defines how user can add other users to the project. Must be one of the following: list, email

Example:

{
   "add_user_method": "list"
}

allow_user_invite (boolean)

Determines if user can invite new users to the application.

Example:

{
   "allow_user_invite": true
}

Example

The following example is a cURL request to add project membership administrators to a project.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.

curl -X POST 'https://demo.attackforge.com/api/ss/group/user' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
  "member_admins":[
    {
      "group_id":"620f1707c66ef8821d35ee17",
      "access_level_limit":"View",
      "add_user_method":"email",
      "allow_user_invite":false
    },
    {
      "user_id":"6132a2db9239f0975f505c4b",
      "access_level_limit":"Edit",
      "add_user_method":"list",
      "allow_user_invite":true
    }
  ]
}'

Response

Response contains a status.

{
   "status": "ok"
}

Last updated