{
  "openapi": "3.1.1",
  "info": {
    "title": "ResourceAllocationService1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://{rootHost}/{servicesPrefix}",
      "variables": {
        "rootHost": {
          "default": "swimlane.replicon.com"
        },
        "servicesPrefix": {
          "default": "services"
        }
      }
    }
  ],
  "paths": {
    "/ResourceAllocationService1.svc/BulkGetActionsForProjectObject": {
      "post": {
        "description": "Determines view and edit resource allocation permissions for the current user on a set of projects.",
        "operationId": "BulkGetActionsForProjectObject",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "projectUris"
                ],
                "properties": {
                  "projectUris": {
                    "description": "Array of project URIs to check resource allocation permissions for",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/UriArray"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Results containing per-project permission flags and any errors for invalid URIs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ResourceAllocationActionBulkGetResult1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "UriArray": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "uri"
        }
      },
      "ResourceAllocationActionBulkGetResult1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ResourceAllocationActionsForProjectResult1"
            }
          },
          "errors": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ResourceAllocationActionBulkGetError1"
            }
          }
        }
      },
      "ResourceAllocationActionsForProjectResult1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "projectUri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "canViewResourceAllocation": {
            "type": "boolean"
          },
          "canEditResourceAllocation": {
            "type": "boolean"
          }
        }
      },
      "ResourceAllocationActionBulkGetError1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "displayText": {
            "type": "string",
            "nullable": true
          },
          "projectUri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ]
}