Skip to main content

Actors

SDK methods for the Actors module, accessed via soat.actors. See the Actors module docs for permissions and data model, and each method's REST page for the full request/response schema.

soat.actors.listActors()

List actors

  • Method: GET
  • Path: /api/v1/actors
await soat.actors.listActors({
query: { /* + optional */ },
});

Request & response schema

soat.actors.createActor()

Create an actor

  • Method: POST
  • Path: /api/v1/actors
await soat.actors.createActor({
body: { name, /* + optional */ },
});

Request & response schema

soat.actors.getActor()

Get an actor by ID

  • Method: GET
  • Path: /api/v1/actors/{actor_id}
await soat.actors.getActor({
path: { actor_id },
});

Request & response schema

soat.actors.deleteActor()

Delete an actor

  • Method: DELETE
  • Path: /api/v1/actors/{actor_id}
await soat.actors.deleteActor({
path: { actor_id },
});

Request & response schema

soat.actors.updateActor()

Update an actor

  • Method: PATCH
  • Path: /api/v1/actors/{actor_id}
await soat.actors.updateActor({
path: { actor_id },
body: { /* + optional */ },
});

Request & response schema

soat.actors.getActorTags()

Get actor tags

  • Method: GET
  • Path: /api/v1/actors/{actor_id}/tags
await soat.actors.getActorTags({
path: { actor_id },
});

Request & response schema

soat.actors.replaceActorTags()

Replace actor tags

  • Method: PUT
  • Path: /api/v1/actors/{actor_id}/tags
await soat.actors.replaceActorTags({
path: { actor_id },
body,
});

Request & response schema

soat.actors.mergeActorTags()

Merge actor tags

  • Method: PATCH
  • Path: /api/v1/actors/{actor_id}/tags
await soat.actors.mergeActorTags({
path: { actor_id },
body,
});

Request & response schema