NectaVendorsApi

<back to all web services

SaveVendorForAdmin

Requires Authentication
Required permission:view_user
The following routes are available for this service:
PUT/admin/vendor/{Id}
SaveVendorForAdmin Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
LoginUrlbodystringNo
UserbodyUserDtoNo
VendorUsersbodyList<VendorUserDto>No
UserDto Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserIdformintNo
RoleformRoleNo
UserNameformstringNo
AuthMethodformAuthMethodNo
DeactivatedformboolNo
VendorformVendorHeaderDtoNo
UserEmailformstringNo
VendorHeaderDto Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
GuidformstringNo
UseChangesetformboolNo
StreetNumberformstringNo
CountryformintNo
ZipCodeformstringNo
CityformstringNo
WebsiteformstringNo
GlnformstringNo
UidformstringNo
MailformstringNo
LanguageformintNo
CurrencyformintNo
ExportLevelformintNo
VendorUserDto Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
IdformintNoThe only use case is validation.
UserNameformstringNo
RoleformRoleNo
AuthMethodformAuthMethodNo
DeactivatedformboolNo
HasDeactivatedStateChangedformboolNo
DeleteformboolNo
UserPermissionsformList<UserPermissionDto>No
UserPermissionDto Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
UserPermissionTypeIdformintNo
ActiveformboolNo
RoleIdformintNo
ResponseGetVendorForAdmin Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserformUserDtoNo
VendorUsersformList<VendorUserDto>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /admin/vendor/{Id} HTTP/1.1 
Host: vendor-api.digisupply.klueh.de 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"LoginUrl":"String","User":{"Id":0,"UserId":0,"Role":1,"UserName":"String","AuthMethod":0,"Deactivated":false,"Vendor":{"Id":0,"Name":"String","Guid":"String","UseChangeset":false,"StreetNumber":"String","Country":0,"ZipCode":"String","City":"String","Website":"String","Gln":"String","Uid":"String","Mail":"String","Language":0,"Currency":0,"ExportLevel":0},"UserEmail":"String"},"VendorUsers":[{"UserId":0,"Id":0,"UserName":"String","Role":1,"AuthMethod":0,"Deactivated":false,"HasDeactivatedStateChanged":false,"Delete":false,"UserPermissions":[{"UserId":0,"UserPermissionTypeId":0,"Active":false,"RoleId":0}]}],"UserId":0,"Role":1,"UserName":"String","AuthMethod":0,"Deactivated":false,"Vendor":{"Id":0,"Name":"String","Guid":"String","UseChangeset":false,"StreetNumber":"String","Country":0,"ZipCode":"String","City":"String","Website":"String","Gln":"String","Uid":"String","Mail":"String","Language":0,"Currency":0,"ExportLevel":0},"UserEmail":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"User":{"Id":0,"UserId":0,"Role":1,"UserName":"String","AuthMethod":0,"Deactivated":false,"Vendor":{"Id":0,"Name":"String","Guid":"String","UseChangeset":false,"StreetNumber":"String","Country":0,"ZipCode":"String","City":"String","Website":"String","Gln":"String","Uid":"String","Mail":"String","Language":0,"Currency":0,"ExportLevel":0},"UserEmail":"String"},"VendorUsers":[{"UserId":0,"Id":0,"UserName":"String","Role":1,"AuthMethod":0,"Deactivated":false,"HasDeactivatedStateChanged":false,"Delete":false,"UserPermissions":[{"UserId":0,"UserPermissionTypeId":0,"Active":false,"RoleId":0}]}]}