Skip to content

Latest commit

 

History

History
150 lines (108 loc) · 2.33 KB

assign.md

File metadata and controls

150 lines (108 loc) · 2.33 KB

Assign a Credential to an ACS User

PATCH /acs/credentials/assign ⇒ void

Assigns a specified credential to a specified ACS user.

{% tabs %} {% tab title="JavaScript" %}

Request

await seam.acs.credentials.assign({
  acs_user_id: "33333333-3333-3333-3333-333333333333",
  acs_credential_id: "66666666-6666-6666-6666-666666666666",
});

Response

// void

{% endtab %}

{% tab title="Python" %}

Request

seam.acs.credentials.assign(
    acs_user_id="33333333-3333-3333-3333-333333333333",
    acs_credential_id="66666666-6666-6666-6666-666666666666",
)

Response

None

{% endtab %}

{% tab title="Ruby" %}

Request

seam.acs.credentials.assign(
  acs_user_id: "33333333-3333-3333-3333-333333333333",
  acs_credential_id: "66666666-6666-6666-6666-666666666666",
)

Response

nil

{% endtab %}

{% tab title="PHP" %}

Request

<?php
$seam->acs->credentials->assign(
    acs_user_id: "33333333-3333-3333-3333-333333333333",
    acs_credential_id: "66666666-6666-6666-6666-666666666666"
);

Response

null

{% endtab %}

{% tab title="Seam CLI" %}

Request

seam acs credentials assign --acs_user_id "33333333-3333-3333-3333-333333333333" --acs_credential_id "66666666-6666-6666-6666-666666666666"

Response

{}

{% endtab %}

{% tab title="Go" %}

Request

package main

import api "github.com/seamapi/go"
import credentials "github.com/seamapi/go/credentials"

func main() {
	client.Acs.Credentials.Assign(
		context.Background(),
		credentials.CredentialsAssignRequest{
			AcsUserId:       api.String("33333333-3333-3333-3333-333333333333"),
			AcsCredentialId: api.String("66666666-6666-6666-6666-666666666666"),
		},
	)
}

Response

nil

{% endtab %}

{% endtabs %}

Authentication Methods

  • API key
  • Personal access token
    Must also include the seam-workspace header in the request.

Request Parameters

acs_credential_id

Type: string Required: Yes

ID of the desired credential.


acs_user_id

Type: string Required: Yes

ID of the desired user.


Return Type

void