Sirv REST API Documentation

GET /v2/account

Description

Get account info

Authentication

Strategies

JWT

Mode

required

Scopes

  • Required
    account:read
  • Request Parameters

    Query Parameters

    Denied

    Response Parameters

    •  
      {
      • dateCreated
        date
      • alias
        string
      • isPartner
        boolean
      • fileSizeLimit
        number
      • customRedirectUrl
        string
      • cdnURL
        string
      • cdnTempURL
        string
      • fetching
        {
          }
        • minify
          {
            }
          • aliases
            {
              }
            }
        POST /v2/account

        Description

        Update account info

        Authentication

        Strategies

        JWT

        Mode

        required

        Scopes

        • Required
          account:write
        • Request Parameters

          Query Parameters

          Denied

          Payload Parameters

          •  
            {
            • minify
              {
              • boolean required

                Enable or disable automatic minification of JS/CSS files

              }
            • fetching
              {
              • enabled
                boolean required
              • type
                Any of (
                • If enabled matches the following model :
                  • boolean
                    true required
                  Then :
                  • string
                      required
                  Otherwise :
                )
              • http
                Any of (
                • If type matches the following model :
                  • string
                    "http" required
                  Then :
                  • object
                      required
                    {
                    • auth
                      {
                      • enabled
                        boolean required
                      • username
                        Any of (
                        • If enabled matches the following model :
                          • boolean
                            true required
                          Then :
                          • string
                              required
                          Otherwise :
                        )
                      • password
                        Any of (
                        • If enabled matches the following model :
                          • boolean
                            true required
                          Then :
                          • string
                              required
                          Otherwise :
                        )
                      }
                    • string required
                      Uri
                    }
                  Otherwise :
                )
              • s3
                Any of (
                • If type matches the following model :
                  • string
                    "s3" required
                  Then :
                  • object
                      required
                    {
                    • endpoint
                      string
                    • accessKeyId
                      string required
                    • secretAccessKey
                      string required
                    • bucket
                      string required
                    • prefix
                      string
                    • forcePathStyle
                      boolean
                    }
                  Otherwise :
                )
              }
            }

        Need Help?