Unity · Capability

Unity Cloud Save API — Custom Data

Unity Cloud Save API — Custom Data. 2 operations. Lead operation: Set Protected Player Data. Self-contained Naftiko capability covering one Unity business surface.

Run with Naftiko UnityCustom Data

What You Can Do

POST
Setprotectedplayerdata — Set Protected Player Data
/v1/v1/data/projects/{projectid}/players/{playerid}/protected-items
POST
Setpublicplayerdata — Set Public Player Data
/v1/v1/data/projects/{projectid}/players/{playerid}/public-items

MCP Tools

set-protected-player-data

Set Protected Player Data

set-public-player-data

Set Public Player Data

Capability Spec

cloud-save-custom-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unity Cloud Save API — Custom Data
  description: 'Unity Cloud Save API — Custom Data. 2 operations. Lead operation: Set Protected Player Data. Self-contained
    Naftiko capability covering one Unity business surface.'
  tags:
  - Unity
  - Custom Data
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNITY_API_KEY: UNITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-save-custom-data
    baseUri: https://cloud-save.services.api.unity.com
    description: Unity Cloud Save API — Custom Data business capability. Self-contained, no shared references.
    resources:
    - name: v1-data-projects-projectId-players-playerId-protected-items
      path: /v1/data/projects/{projectId}/players/{playerId}/protected-items
      operations:
      - name: setprotectedplayerdata
        method: POST
        description: Set Protected Player Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: playerId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-data-projects-projectId-players-playerId-public-items
      path: /v1/data/projects/{projectId}/players/{playerId}/public-items
      operations:
      - name: setpublicplayerdata
        method: POST
        description: Set Public Player Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: playerId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.UNITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-save-custom-data-rest
    port: 8080
    description: REST adapter for Unity Cloud Save API — Custom Data. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/data/projects/{projectid}/players/{playerid}/protected-items
      name: v1-data-projects-projectid-players-playerid-protected-items
      description: REST surface for v1-data-projects-projectId-players-playerId-protected-items.
      operations:
      - method: POST
        name: setprotectedplayerdata
        description: Set Protected Player Data
        call: cloud-save-custom-data.setprotectedplayerdata
        with:
          projectId: rest.projectId
          playerId: rest.playerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/data/projects/{projectid}/players/{playerid}/public-items
      name: v1-data-projects-projectid-players-playerid-public-items
      description: REST surface for v1-data-projects-projectId-players-playerId-public-items.
      operations:
      - method: POST
        name: setpublicplayerdata
        description: Set Public Player Data
        call: cloud-save-custom-data.setpublicplayerdata
        with:
          projectId: rest.projectId
          playerId: rest.playerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-save-custom-data-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unity Cloud Save API — Custom Data. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: set-protected-player-data
      description: Set Protected Player Data
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-save-custom-data.setprotectedplayerdata
      with:
        projectId: tools.projectId
        playerId: tools.playerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-public-player-data
      description: Set Public Player Data
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-save-custom-data.setpublicplayerdata
      with:
        projectId: tools.projectId
        playerId: tools.playerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.