Remove an automation member

This call removes a member from an automation. You can only remove a member if you have admin privileges in the automation.

Request

https://api.sbgenomics.com/v2/automation/automations/{automation-id}/members/{username}
https://eu-api.sbgenomics.com/v2/automation/automations/{automation-id}/members/{username}

Example request

DELETE /v2/automation/automations/232c475c-a3a0-4127-92b5-f545829ec213/members/rfranklin HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 8a6b42ec064246c9b52ddd68e907197a
X-SBG-Advance-Access: advance
curl -X DELETE \
  https://api.sbgenomics.com/v2/automation/automations/232c475c-a3a0-4127-92b5-f545829ec213/rfranklin \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'x-sbg-advance-access: advance' \
  -H 'x-sbg-auth-token: 8a6b42ec064246c9b52ddd68e907197a'
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74',
          advance_access=True)

automation = api.automations.get(id='232c475c-a3a0-4127-92b5-f545829ec213')

# send DELETE request to SB API
automation.remove_member(user='rfranklin')

Header fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

X-SBG-Advance-Access
required

advance

Path parameters

Name

Description

automation-id
required

The ID of the automation the member belongs to.

username
required

The username of the member you are removing.

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response..