Attribute Values


API documentation for working with property values

Table with field descriptions:

Field Type Required? Description
id int No Unique identifier of the characteristic value (required when updating).
sp_key string No (Automatically generated) Unique feature value key (for example: "bluetooth5.2").
name_ro string Yes The name of the characteristic value in Romanian.
name_ru string Yes The name of the characteristic value in Russian.
name_en string No Name of the characteristic value in English.
name_uk string No The name of the meaning of the characteristic in Ukrainian.

1. Getting all characteristic values

Method: GET
URL: {domain}/external/specification-value/

Description:
Returns a list of all site characteristic values.

Query example:

GET {domain}/external/specification-value/

Example answer:

[
    {
        "id": 167,
        "sp_key": "bluetooth5.2(a2dp1.3.avrcp1.6.hfp1.6).aux",
        "name_ro": "Bluetooth 5.2 (A2DP 1.3, AVRCP 1.6, HFP 1.6), AUX",
        "name_ru": "Bluetooth 5.2 (A2DP 1.3, AVRCP 1.6, HFP 1.6), AUX",
        "name_en": null,
        "name_uk": null
    },
    {
        "id": 84,
        "sp_key": "1050x397x390mm",
        "name_ro": "1050 x 397 x 390 mm",
        "name_ru": "1050 x 397 x 390 mm",
        "name_en": null,
        "name_uk": null
    }
]

2. Getting one characteristic value

Method: GET
URL: {domain}/external/specification-value/{id}/

Description:
Returns data for a single characteristic value by its ID.

Query example:

GET {domain}/external/specification-value/167/

Example answer:

{
    "id": 167,
    "sp_key": "bluetooth5.2(a2dp1.3.avrcp1.6.hfp1.6).aux",
    "name_ro": "Bluetooth 5.2 (A2DP 1.3, AVRCP 1.6, HFP 1.6), AUX",
    "name_ru": "Bluetooth 5.2 (A2DP 1.3, AVRCP 1.6, HFP 1.6), AUX",
    "name_en": null,
    "name_uk": null
}

3. Updating one characteristic value

Method: PUT
URL: {domain}/external/specification-value/{id}/

Description:
Updates data for one characteristic value by its ID.

Query example:

PUT {domain}/external/specification-value/167/
Content-Type: application/json

Request body:

{
    "sp_key": "bluetooth5.2.updated",
    "name_ro": "Bluetooth 5.2 Actualizat",
    "name_ru": "Bluetooth 5.2 Updated",
    "name_en": "Bluetooth 5.2 Updated",
    "name_uk": "Bluetooth 5.2 Updated"
}

Example answer:

{
    "id": 167,
    "sp_key": "bluetooth5.2.updated",
    "name_ro": "Bluetooth 5.2 Actualizat",
    "name_ru": "Bluetooth 5.2 Updated",
    "name_en": "Bluetooth 5.2 Updated",
    "name_uk": "Bluetooth 5.2 Updated"
}

4. Creating Multiple Attribute Values

Method: POST
URL: {domain}/external/specification-value/bulk-create/

Description:
Creates multiple stat values at once.

Query example:

POST {domain}/external/specification-value/bulk-create/
Content-Type: application/json

Request body:

[
    {
        "sp_key": "new.value.1",
        "name_ro": "Valoare nouă 1",
        "name_ru": "New value 1",
        "name_en": "New value 1",
        "name_uk": "New value 1"
    },
    {
        "sp_key": "new.value.2",
        "name_ro": "Valoare nouă 2",
        "name_ru": "New value 2",
        "name_en": "New value 2",
        "name_uk": "New meaning 2"
    }
]

Example answer:

[
    {
        "id": 201,
        "sp_key": "new.value.1",
        "name_ro": "Valoare nouă 1",
        "name_ru": "New value 1",
        "name_en": "New value 1",
        "name_uk": "New value 1"
    },
    {
        "id": 202,
        "sp_key": "new.value.2",
        "name_ro": "Valoare nouă 2",
        "name_ru": "New value 2",
        "name_en": "New value 2",
        "name_uk": "New meaning 2"
    }
]

5. Updating Multiple Attribute Values

Method: PUT
URL: {domain}/external/specification-value/bulk-update/

Description:
Updates multiple stat values at once.

Query example:

PUT {domain}/external/specification-value/bulk-update/
Content-Type: application/json

Request body:

[
    {
        "id": 167,
        "sp_key": "bluetooth5.2.updated",
        "name_ro": "Bluetooth 5.2 Actualizat",
        "name_ru": "Bluetooth 5.2 Updated",
        "name_en": "Bluetooth 5.2 Updated",
        "name_uk": "Bluetooth 5.2 Updated"
    },
    {
        "id": 84,
        "sp_key": "1050x397x390mm.updated",
        "name_ro": "1050 x 397 x 390 mm Actualizat",
        "name_ru": "1050 x 397 x 390 mm Updated",
        "name_en": "1050 x 397 x 390 mm Updated",
        "name_uk": "1050 x 397 x 390 mm Updated"
    }
]

Example answer:

[
    {
        "id": 167,
        "sp_key": "bluetooth5.2.updated",
        "name_ro": "Bluetooth 5.2 Actualizat",
        "name_ru": "Bluetooth 5.2 Updated",
        "name_en": "Bluetooth 5.2 Updated",
        "name_uk": "Bluetooth 5.2 Updated"
    },
    {
        "id": 84,
        "sp_key": "1050x397x390mm.updated",
        "name_ro": "1050 x 397 x 390 mm Actualizat",
        "name_ru": "1050 x 397 x 390 mm Updated",
        "name_en": "1050 x 397 x 390 mm Updated",
        "name_uk": "1050 x 397 x 390 mm Updated"
    }
]

Was the article helpful?

Yes, thank you! Unfortunately no

article.helpfulQuestion