Amazon S3 S3 Ownershipcontrols API

The S3 Ownershipcontrols API from Amazon S3 — 1 operation(s) for s3 ownershipcontrols.

GitHub OpenAPI

Operations 3

DELETE /{Bucket}?ownershipControls Delete Bucket Ownership Controls #
GET /{Bucket}?ownershipControls Get Bucket Ownership Controls #
PUT /{Bucket}?ownershipControls Put Bucket Ownership Controls #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-s3:amazon-s3-ownershipcontrols-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-s3-ownershipcontrols-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Simple Storage Service Ownershipcontrols API
  version: '2006-03-01'
  description: Generated from AWS's published Smithy model for Amazon Simple Storage Service. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://s3.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /{Bucket}?ownershipControls:
    delete:
      operationId: DeleteBucketOwnershipControls
      summary: Delete Bucket Ownership Controls
      description: 'This operation is not supported for directory buckets. Removes OwnershipControls for an Amazon S3 bucket.
        To use this operation, you must have the s3:PutBucketOwnershipControls permission. For more information about Amazon
        S3 permissions, see Specifying Permissions in a Policy. For information about Amazon S3 Object Ownership, see Using
        Object Ownership. The following operations are related to DeleteBucketOwnershipControls: GetBucketOwnershipControls
        PutBucketOwnershipControls You must URL encode any signed header values that contain spaces. For example, if your
        header value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The Amazon S3 bucket whose OwnershipControls you want to delete.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      tags:
      - Ownershipcontrols
    get:
      operationId: GetBucketOwnershipControls
      summary: Get Bucket Ownership Controls
      description: 'This operation is not supported for directory buckets. Retrieves OwnershipControls for an Amazon S3 bucket.
        To use this operation, you must have the s3:GetBucketOwnershipControls permission. For more information about Amazon
        S3 permissions, see Specifying permissions in a policy. A bucket doesn''t have OwnershipControls settings in the following
        cases: The bucket was created before the BucketOwnerEnforced ownership setting was introduced and you''ve never explicitly
        applied this value You''ve manually deleted the bucket ownership control value using the DeleteBucketOwnershipControls
        API operation. By default, Amazon S3 sets OwnershipControls for all newly created buckets. For information about Amazon
        S3 Object Ownership, see Using Object Ownership. The following operations are related to GetBucketOwnershipControls:
        PutBucketOwnershipControls DeleteBucketOwnershipControls You must URL encode any signed header values that contain
        spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode this
        value to my%20%20file.txt.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetBucketOwnershipControlsOutput'
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The name of the Amazon S3 bucket whose OwnershipControls you want to retrieve.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      tags:
      - Ownershipcontrols
    put:
      operationId: PutBucketOwnershipControls
      summary: Put Bucket Ownership Controls
      description: 'This operation is not supported for directory buckets. Creates or modifies OwnershipControls for an Amazon
        S3 bucket. To use this operation, you must have the s3:PutBucketOwnershipControls permission. For more information
        about Amazon S3 permissions, see Specifying permissions in a policy. For information about Amazon S3 Object Ownership,
        see Using object ownership. The following operations are related to PutBucketOwnershipControls: GetBucketOwnershipControls
        DeleteBucketOwnershipControls You must URL encode any signed header values that contain spaces. For example, if your
        header value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The name of the Amazon S3 bucket whose OwnershipControls you want to set.
      - name: Content-MD5
        in: header
        schema:
          type: string
        description: The MD5 hash of the OwnershipControls request body. For requests made using the Amazon Web Services Command
          Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      - name: x-amz-sdk-checksum-algorithm
        in: header
        schema:
          type: string
          enum:
          - CRC32
          - CRC32C
          - SHA1
          - SHA256
          - CRC64NVME
          - SHA512
          - MD5
          - XXHASH64
          - XXHASH3
          - XXHASH128
        description: Indicates the algorithm used to create the checksum for the object when you use the SDK. This header
          will not provide any additional functionality if you don't use the SDK. When you send this header, there must be
          a corresponding x-amz-checksum-algorithm header sent. Otherwise, Amazon S3 fails the request with the HTTP status
          code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide. If you provide
          an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.
      requestBody:
        content:
          application/xml:
            schema:
              $ref: '#/components/schemas/OwnershipControls'
      tags:
      - Ownershipcontrols
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: s3
  schemas:
    GetBucketOwnershipControlsOutput:
      type: object
      properties:
        OwnershipControls:
          $ref: '#/components/schemas/OwnershipControls'
    OwnershipControls:
      type: object
      properties:
        Rules:
          type: array
          items:
            $ref: '#/components/schemas/OwnershipControlsRule'
          description: The container element for an ownership control rule.
      required:
      - Rules
    OwnershipControlsRule:
      type: object
      properties:
        ObjectOwnership:
          type: string
          enum:
          - BucketOwnerPreferred
          - ObjectWriter
          - BucketOwnerEnforced
      required:
      - ObjectOwnership
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/s3/service/2006-03-01/s3-2006-03-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)