- Available Since API Version – 2.0\
The SecAccess2LvlField type is used to represent Read and Write security settings for entities. SecAccess2LvlField fields contain the following properties:
-
Write - A SecAccessFieldSchema field specifying the write permissions on the entity.\
-
Read - A SecAccessFieldSchema field specifying the read permissions on the entity\
Basic Read Request
The following example illustrates the syntax for a request for the Read and Write properties of a SecAccess2LvlField in a Read method call.
Request
{
"SecAccess":{
"Read":1,
"Write":1
}
}
Response
{
"SecAccess":{
"Read":[
"VXNlcgkq"
],
"Write":[
"VXNlcglNQVNURVI=",
"VXNlcglNQ09SRUxM"
]
}
}
Create/Update Request
The following example illustrates the syntax for including a SecAccess2LvlField in a Create or Update method call.
Request
{
"SecAccess":{
"Read":[
"VXNlcgkq"
]
}
}
Response
{
"SecAccess":{
"Read":[
"VXNlcgkq"
]
}
}