Open Context Protocol is live! 🚀 Read the launch post
getSpacePropertyById

getSpacePropertyById

Get space property by id

Details

  • Method: GET
  • Path: /spaces/{space-id}/properties/{property-id}
  • Operation ID: getSpacePropertyById

Parameters

{
  "space-id": {
    "description": "The ID of the space the property belongs to.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "property-id": {
    "description": "The ID of the property to be retrieved.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the space property."
    },
    "key": {
      "type": "string",
      "description": "Key of the space property."
    },
    "value": {
      "description": "Value of the space property."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 compliant date time at which the property was created."
    },
    "createdBy": {
      "type": "string",
      "description": "Atlassian account ID of the user that created the space property."
    },
    "version": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "RFC3339 compliant date time at which the property's current version was created."
        },
        "createdBy": {
          "type": "string",
          "description": "Atlassian account ID of the user that created the space property's current version."
        },
        "message": {
          "type": "string",
          "description": "Message associated with the current version."
        },
        "number": {
          "type": "integer",
          "format": "int32",
          "description": "The space property's current version number."
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('confluence')

# Call this tool
result = await agent.call_tool('getSpacePropertyById', {
    # Add required parameters here
})