Skip to content

DBC Files

List DBC Files

curl https://app.rejoule.io/bms/dbc/files/ \
    -H "Authorization: User <token>"

The following query parameters are available:

Name Type Description
limit integer Number of results to return per page.
offset integer The initial index from which to return the results.
id string id
organization string organization
name string name
version string version
has_file string has_file
project string project
created string created
updated string updated

Create a DBC File

Member Role required

Editing requires an Member role in the organization the resource belongs to. Find out more.

curl https://app.rejoule.io/bms/dbc/files/ \
    -X POST \
    -H "Authorization: User <token>" \
    -F "organization=2" \
    -F "name=hello-world" \
    -F "version=hello-world"

Get a single DBC File

curl https://app.rejoule.io/bms/dbc/files/{id}/ \
    -H "Authorization: User <token>"

The response object contains the following fields:

Name Type Description
id integer
organization integer
name string The name of this DBC File
version string The free-form version of this dbc file. Versions are limited to 64 characters in length. Semantic versioning is recommended.
applicable_batteries array
file integer The file reference that is storing this DBC file.
projects array
notes string
created_at string
updated_at string

Update a DBC File

Member Role required

Editing requires an Member role in the organization the resource belongs to. Find out more.

curl https://app.rejoule.io/bms/dbc/files/{id}/ \
    -X PUT \
    -H "Authorization: User <token>" \
    -F "organization=13" \
    -F "name=hello-world" \
    -F "version=hello-world"

Delete a DBC File

Owner Role required

Deleting requires an Owner role in the organization the resource belongs to. Find out more.

curl https://app.rejoule.io/bms/dbc/files/{id}/ \
    -X DELETE \
    -H "Authorization: User <token>"

Download a DBC File

curl https://app.rejoule.io/bms/dbc/files/{id}/download/ \
    -H "Authorization: User <token>"