Configurations

The user's configuration that stores the user's settings for the application. We can use this configuration to store the user's preferences, settings, and other data.

Creates a new configuration for the user.

post
Path parameters
userIdstringRequired

The id of the user.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Body

Configuration model.

groupCodestring · min: 1Required

This represents the group code.

Example: GROUP_CODE
codestring · min: 1Required

This represents the code.

Example: CODE
namestring · min: 1Required

This represents the name.

Example: Name
descriptionstring | nullableOptional

This represents the description.

Example: Description
valuestring · min: 1Required

This represents the value.

Example: Value
statusstring · enumOptional

This enum is used to define the common status of an object in JFW.

Supported values:

Possible values:
Responses
201

The request was successful.

application/json
post
POST /api/v1/users/{userId}/configurations HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 118

{
  "groupCode": "GROUP_CODE",
  "code": "CODE",
  "name": "Name",
  "description": "Description",
  "value": "Value",
  "status": "Inactive"
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "id": "sApKpllz4sAplsmzha",
    "groupCode": "GROUP_CODE",
    "code": "CODE",
    "name": "Name",
    "value": "Value",
    "description": "Description",
    "status": "Active",
    "isSystem": false
  },
  "errors": []
}

Gets the user's configurations.

get
Path parameters
userIdstringRequired

The id of the user.

Query parameters
GroupCodestringOptional

Filter by group code.

CodestringOptional

Filter by code.

NamestringOptional

Filter by name.

DescriptionstringOptional

Filter by description.

ValuestringOptional

Filter by value.

Statusstring · enumOptional

This enum is used to define the common status of an object in JFW.

Supported values:

Possible values:
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Responses
200

The request was successful.

application/json
get
GET /api/v1/users/{userId}/configurations HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": [
    {
      "id": "sApKpllz4sAplsmzha",
      "groupCode": "GROUP_CODE",
      "code": "CODE",
      "name": "Name",
      "value": "Value",
      "description": "Description",
      "status": "Active",
      "isSystem": false
    }
  ],
  "errors": []
}

Deletes the user's configuration by ID.

delete
Path parameters
userIdstringRequired

The id of the user.

configurationIdstringRequired

The id of the configuration.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Responses
200

The request was successful.

application/json
delete
DELETE /api/v1/users/{userId}/configurations/{configurationId} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": true,
  "errors": []
}

Last updated

Was this helpful?