API for RP Attribute Management transactions, where an RP can administrate attributes for a user, iff the RP owns the actual attribute scheme
Modify attribute RP API
name | type | description |
---|---|---|
application | path | application requesting the attribute change |
userId | path | of the user (as presented to application when logging in to application, not the global diglias user id) |
media type | data type | description |
---|---|---|
application/json | RpAttributeManagementTransaction (JSON) | The actual request in json format. The object must hold an action and a list of
attributes to be modified according to action.
actionEither ADD or REMOVEattributesArray of attributes where each attribute must include:
Example{ "action": "ADD", "attributes": [ { "name": "acmeId","value": "234654-2455423" }, { "name": "acmeMeta","value": "VALUE" } ] } |
application/json | RpAttributeManagementTransaction (JSON) |
POST /attribute/v1.0/{application}/{userId}
Content-Type: application/json
{
"attributes" : [ {
"value" : "...",
"id" : "...",
"name" : "..."
}, {
"value" : "...",
"id" : "...",
"name" : "..."
} ],
"action" : "REMOVE"
}
HTTP/1.1 201 Created