WorkOS · Schema

CreateM2MApplicationDto

AuthenticationIdentity ProviderSSOSAMLOIDCSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCP

Properties

Name Type Description
name string The name of the application.
application_type string The type of application to create.
description stringnull A description for the application.
scopes arraynull The OAuth scopes granted to the application.
organization_id string The organization ID this application belongs to.
View JSON Schema on GitHub

JSON Schema

workos-createm2mapplicationdto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateM2MApplicationDto",
  "title": "CreateM2MApplicationDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the application.",
      "example": "My Application"
    },
    "application_type": {
      "type": "string",
      "description": "The type of application to create.",
      "const": "m2m"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "A description for the application.",
      "example": "An application for managing user access"
    },
    "scopes": {
      "description": "The OAuth scopes granted to the application.",
      "example": [
        "openid",
        "profile",
        "email"
      ],
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "organization_id": {
      "type": "string",
      "description": "The organization ID this application belongs to.",
      "example": "org_01EHZNVPK3SFK441A1RGBFSHRT"
    }
  },
  "required": [
    "name",
    "application_type",
    "organization_id"
  ]
}