forked from Nova-reward/Nova-Rewards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-a-new-reward.StatusCodes.json
More file actions
1 lines (1 loc) · 1.05 KB
/
Copy pathcreate-a-new-reward.StatusCodes.json
File metadata and controls
1 lines (1 loc) · 1.05 KB
1
{"responses":{"201":{"description":"Reward created.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true},"data":{"type":"object","properties":{"id":{"type":"integer","example":12},"name":{"type":"string","example":"10% Off Voucher"},"cost":{"type":"integer","example":500},"stock":{"type":"integer","nullable":true,"example":100},"is_active":{"type":"boolean","example":true}},"title":"Reward"}}}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"error":{"type":"string","example":"validation_error"},"message":{"type":"string","example":"walletAddress is required"}},"title":"ErrorResponse"}}}},"401":{"description":"Unauthenticated.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"error":{"type":"string","example":"validation_error"},"message":{"type":"string","example":"walletAddress is required"}},"title":"ErrorResponse"}}}}}}