GET /api/v2/account-uploads/:id
Show an account upload

Examples

GET /api/v2/account-uploads/2
401
{
  "errors": [
    {
      "title": "You are not authorized to access this request"
    }
  ]
}

Params

Param name Description
id
required

account upload ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.


POST /api/v2/account-uploads
Create account upload

Examples

POST /api/v2/account-uploads
{
  "data": {
    "type": "account-uploads",
    "attributes": {
      "source": "data:application/pdf;base64,JVBERi0xLjMKJcTl8uXrp/Og0MTGCjQgMCBvYmoKPDwgL0xlbmd0aCA1IDAgUiAvRmlsdGVyIC9GbGF0ZURlY29kZSA+PgpzdHJlYW0KeAFVT7sOgzAQ2/kKjzAAd0nThLWvoVORTupQdUIgBqhE0/9XQyhClQfrrLPPN6HGBKtgiYq9Y4Wd4UJZYzAzOWPxbnHHC+XRMxoPjvBNdIUl5yqHMTFKLz67agM2bU0f/m4N6NGBIkLgBCocEWtdRSnfxrnhLzdpRhwEerHlgVkjOGREKTK3kw4PpJKBmZG2/oPb6ZLhCbniLOHj+gtFbDR6CmVuZHN0cmVhbQplbmRvYmoKNSAwIG9iagoxNjIKZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAzIDAgUiAvUmVzb3VyY2VzIDYgMCBSIC9Db250ZW50cyA0IDAgUiAvTWVkaWFCb3ggWzAgMCA1OTUuMjc1NiA4NDEuODg5OF0KPj4KZW5kb2JqCjYgMCBvYmoKPDwgL1Byb2NTZXQgWyAvUERGIC9UZXh0IF0gL0NvbG9yU3BhY2UgPDwgL0NzMSA3IDAgUiA+PiAvRm9udCA8PCAvVFQxIDggMCBSCj4+ID4+CmVuZG9iago5IDAgb2JqCjw8IC9MZW5ndGggMTAgMCBSIC9OIDMgL0FsdGVybmF0ZSAvRGV2aWNlUkdCIC9GaWx0ZXIgL0ZsYXRlRGVjb2RlID4+CnN0cmVhbQp4AZ2Wd1RT2RaHz703vdASIiAl9Bp6C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cgMCBSIC9DcmVhdGlvbkRhdGUgMTggMCBSIC9Nb2REYXRlCjE4IDAgUiAvS2V5d29yZHMgMTkgMCBSIC9BQVBMOktleXdvcmRzIDIwIDAgUiA+PgplbmRvYmoKeHJlZgowIDIxCjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwNjE2MiAwMDAwMCBuIAowMDAwMDAwMjc3IDAwMDAwIG4gCjAwMDAwMDMyNTggMDAwMDAgbiAKMDAwMDAwMDAyMiAwMDAwMCBuIAowMDAwMDAwMjU4IDAwMDAwIG4gCjAwMDAwMDAzOTEgMDAwMDAgbiAKMDAwMDAwMzIyMyAwMDAwMCBuIAowMDAwMDAzNDAxIDAwMDAwIG4gCjAwMDAwMDA0ODggMDAwMDAgbiAKMDAwMDAwMzIwMiAwMDAwMCBuIAowMDAwMDAzMzUxIDAwMDAwIG4gCjAwMDAwMDM3NjcgMDAwMDAgbiAKMDAwMDAwNDA0MSAwMDAwMCBuIAowMDAwMDA1OTU5IDAwMDAwIG4gCjAwMDAwMDU5ODAgMDAwMDAgbiAKMDAwMDAwNjAwNyAwMDAwMCBuIAowMDAwMDA2MDU5IDAwMDAwIG4gCjAwMDAwMDYwODEgMDAwMDAgbiAKMDAwMDAwNjEyMyAwMDAwMCBuIAowMDAwMDA2MTQyIDAwMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgMjEgL1Jvb3QgMTEgMCBSIC9JbmZvIDEgMCBSIC9JRCBbIDw4YmJkNjRlMDRkNDRkMzM3NTMyY2JkZGJiOGEyNWE4ND4KPDhiYmQ2NGUwNGQ0NGQzMzc1MzJjYmRkYmI4YTI1YTg0PiBdID4+CnN0YXJ0eHJlZgo2MzA2CiUlRU9GCg==",
      "source-file-name": "my_uploaded_pdf.pdf",
      "source-file-size": "1024",
      "source-updated-at": "2017-08-29 10:43:14 +0800",
      "source-content-type": "application/pdf",
      "name": "My upload name"
    }
  }
}
201
{
  "data": {
    "id": "9",
    "type": "account-uploads",
    "links": {
      "self": "http://test.host/api/v2/account-uploads/9"
    },
    "attributes": {
      "source": "https://static-dev.smartkarma.com/account_uploads/sources/000/000/009/original/my_uploaded_pdf.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIJDG7FXBPHN4IQ6A%2F20170829%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20170829T024315Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=9edc5254a05a3df2e3bbd6e20c302586b8029773c5b0538f93d500b385a3f272",
      "source-file-name": "my_uploaded_pdf.pdf",
      "source-file-size": 1024,
      "source-updated-at": "2017-08-29T10:43:14.858+08:00",
      "source-content-type": "application/pdf",
      "name": "My upload name"
    }
  }
}

Params

Param name Description
data
required

account upload information

Validations:

  • Must be a Hash

data[type]
required

Validations:

data[attributes]
required

Validations:

  • Must be a Hash

data[attributes][name]
optional , nil allowed

name of the file

Validations:

  • Must be a String

data[attributes][source]
required

the file in data URL format

Validations:

  • Must be a String

data[attributes][source-file-name]
required

Validations:

  • Must be a String

data[attributes][source-file-size]
optional , nil allowed

Validations:

  • Must be a String


DELETE /api/v2/account-uploads/:id
Delete an account upload

Examples

DELETE /api/v2/account-uploads/3
401
{
  "errors": [
    {
      "title": "You are not authorized to access this request"
    }
  ]
}

Params

Param name Description
id
required

account upload ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.