naftiko: 1.0.0-alpha2 info: label: Unified.to API — activity description: 'Unified.to API — activity. 6 operations. Lead operation: List all activities. Self-contained Naftiko capability covering one Unified To business surface.' tags: - Unified To - activity created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNIFIED_TO_API_KEY: UNIFIED_TO_API_KEY capability: consumes: - type: http namespace: hr-talent-activity baseUri: https://api.unified.to description: Unified.to API — activity business capability. Self-contained, no shared references. resources: - name: lms-connection_id-activity path: /lms/{connection_id}/activity operations: - name: listlmsactivities method: GET description: List all activities outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: number - name: offset in: query type: number - name: updated_gte in: query type: string description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) - name: sort in: query type: string - name: order in: query type: string - name: query in: query type: string description: Query string to search. eg. email address or name - name: content_id in: query type: string description: The content ID to filter by - name: student_id in: query type: string description: The student ID to filter by (reference to LmsStudent) - name: course_id in: query type: string description: The course ID to filter by (reference to Course) - name: fields in: query type: array description: Fields to return - name: raw in: query type: string description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' - name: connection_id in: path type: string description: ID of the connection required: true - name: createlmsactivity method: POST description: Create an activity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fields in: query type: array description: Fields to return - name: raw in: query type: string description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' - name: connection_id in: path type: string description: ID of the connection required: true - name: body in: body type: object description: Request body (JSON). required: true - name: lms-connection_id-activity-id path: /lms/{connection_id}/activity/{id} operations: - name: removelmsactivity method: DELETE description: Remove an activity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: connection_id in: path type: string description: ID of the connection required: true - name: id in: path type: string description: ID of the Activity required: true - name: getlmsactivity method: GET description: Retrieve an activity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fields in: query type: array description: Fields to return - name: raw in: query type: string description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' - name: connection_id in: path type: string description: ID of the connection required: true - name: id in: path type: string description: ID of the Activity required: true - name: patchlmsactivity method: PATCH description: Update an activity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fields in: query type: array description: Fields to return - name: raw in: query type: string description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' - name: connection_id in: path type: string description: ID of the connection required: true - name: id in: path type: string description: ID of the Activity required: true - name: body in: body type: object description: Request body (JSON). required: true - name: updatelmsactivity method: PUT description: Update an activity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fields in: query type: array description: Fields to return - name: raw in: query type: string description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' - name: connection_id in: path type: string description: ID of the connection required: true - name: id in: path type: string description: ID of the Activity required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: authorization value: '{{env.UNIFIED_TO_API_KEY}}' placement: header exposes: - type: rest namespace: hr-talent-activity-rest port: 8080 description: REST adapter for Unified.to API — activity. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/lms/{connection-id}/activity name: lms-connection-id-activity description: REST surface for lms-connection_id-activity. operations: - method: GET name: listlmsactivities description: List all activities call: hr-talent-activity.listlmsactivities with: limit: rest.limit offset: rest.offset updated_gte: rest.updated_gte sort: rest.sort order: rest.order query: rest.query content_id: rest.content_id student_id: rest.student_id course_id: rest.course_id fields: rest.fields raw: rest.raw connection_id: rest.connection_id outputParameters: - type: object mapping: $. - method: POST name: createlmsactivity description: Create an activity call: hr-talent-activity.createlmsactivity with: fields: rest.fields raw: rest.raw connection_id: rest.connection_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lms/{connection-id}/activity/{id} name: lms-connection-id-activity-id description: REST surface for lms-connection_id-activity-id. operations: - method: DELETE name: removelmsactivity description: Remove an activity call: hr-talent-activity.removelmsactivity with: connection_id: rest.connection_id id: rest.id outputParameters: - type: object mapping: $. - method: GET name: getlmsactivity description: Retrieve an activity call: hr-talent-activity.getlmsactivity with: fields: rest.fields raw: rest.raw connection_id: rest.connection_id id: rest.id outputParameters: - type: object mapping: $. - method: PATCH name: patchlmsactivity description: Update an activity call: hr-talent-activity.patchlmsactivity with: fields: rest.fields raw: rest.raw connection_id: rest.connection_id id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: updatelmsactivity description: Update an activity call: hr-talent-activity.updatelmsactivity with: fields: rest.fields raw: rest.raw connection_id: rest.connection_id id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: hr-talent-activity-mcp port: 9090 transport: http description: MCP adapter for Unified.to API — activity. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-activities description: List all activities hints: readOnly: true destructive: false idempotent: true call: hr-talent-activity.listlmsactivities with: limit: tools.limit offset: tools.offset updated_gte: tools.updated_gte sort: tools.sort order: tools.order query: tools.query content_id: tools.content_id student_id: tools.student_id course_id: tools.course_id fields: tools.fields raw: tools.raw connection_id: tools.connection_id outputParameters: - type: object mapping: $. - name: create-activity description: Create an activity hints: readOnly: false destructive: false idempotent: false call: hr-talent-activity.createlmsactivity with: fields: tools.fields raw: tools.raw connection_id: tools.connection_id body: tools.body outputParameters: - type: object mapping: $. - name: remove-activity description: Remove an activity hints: readOnly: false destructive: true idempotent: true call: hr-talent-activity.removelmsactivity with: connection_id: tools.connection_id id: tools.id outputParameters: - type: object mapping: $. - name: retrieve-activity description: Retrieve an activity hints: readOnly: true destructive: false idempotent: true call: hr-talent-activity.getlmsactivity with: fields: tools.fields raw: tools.raw connection_id: tools.connection_id id: tools.id outputParameters: - type: object mapping: $. - name: update-activity description: Update an activity hints: readOnly: false destructive: false idempotent: true call: hr-talent-activity.patchlmsactivity with: fields: tools.fields raw: tools.raw connection_id: tools.connection_id id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: update-activity-2 description: Update an activity hints: readOnly: false destructive: false idempotent: true call: hr-talent-activity.updatelmsactivity with: fields: tools.fields raw: tools.raw connection_id: tools.connection_id id: tools.id body: tools.body outputParameters: - type: object mapping: $.