{
  "opencollection": "1.0.0",
  "info": {
    "name": "Logto API references Account center Custom profile fields API",
    "version": "Cloud"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "/oidc/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Custom profile fields",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all custom profile fields",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://[tenant_id].logto.app/api/custom-profile-fields"
          },
          "docs": "Get all custom profile fields."
        },
        {
          "info": {
            "name": "Create a custom profile field",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://[tenant_id].logto.app/api/custom-profile-fields",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a custom profile field."
        },
        {
          "info": {
            "name": "Get a custom profile field by name",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://[tenant_id].logto.app/api/custom-profile-fields/:name",
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a custom profile field by name."
        },
        {
          "info": {
            "name": "Update a custom profile field by name",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://[tenant_id].logto.app/api/custom-profile-fields/:name",
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a custom profile field by name."
        },
        {
          "info": {
            "name": "Delete a custom profile field by name",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://[tenant_id].logto.app/api/custom-profile-fields/:name",
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a custom profile field by name."
        },
        {
          "info": {
            "name": "Batch create custom profile fields",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://[tenant_id].logto.app/api/custom-profile-fields/batch",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create multiple custom profile fields in a single request (max 20 items)."
        },
        {
          "info": {
            "name": "Update the display order of the custom profile fields in Sign-in Experience.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://[tenant_id].logto.app/api/custom-profile-fields/properties/sie-order",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the display order of the custom profile fields in Sign-in Experience."
        }
      ]
    }
  ],
  "bundled": true
}