# Create an assignment

**POST /api/v1/assignments**

This endpoint creates an assignment object that you can use to attach insurance coverage to any job assignment a contractor takes after the contractor has gone active on the 1099Policy platform (i.e., after completing their insurance application successfully).

## Servers
- Production server: https://api.1099policy.com (Production server)

## Parameters

### Body: application/json (object)

- **bind** (boolean)  
  Indicates whether to start the process of binding coverage, which includes notifying and subsequently charging the independent contractor for the premium amount due. Defaults to `true`. When false, 1099Policy does not notify or schedule a charge. Note that the independent contractor is not issued coverage if bind is set to `false`.

- **contractor** (string)  
  ID of the contractor

- **coverage_type** (array[string])  
  An array of coverage types that can include one or more of the following insurance coverage values: `general`, `professional`, `workers-comp`, `media`, and `cyber`. If provided, coverage type is factored into the eligibility determination (i.e., does contractor have an active `workers-comp` policy, etc). Defaults to the coverage types of the most recent active policy if `coverage_type` is not provided.

- **effective_date** (integer)  
  The job assignment start date, measured in seconds since the Unix epoch. This date must be set in the future. The default effective_date is the next day.

- **end_date** (integer)  
  The projected job assignment end date, measured in seconds since the Unix epoch. This date must be after the effective date. If the end_date is on the same day as the effective_date, it will automatically be adjusted to the start of the next day. The default end_date is 30 days after the effective date.

- **job** (string)  
  ID of the job that the contractor was paid to do.

- **policy** (string)  
  ID of the policy that you want attached to the assignment. Defaults to the most recent active policy with a matching job category code, work state and contractor home state.

## Responses
### 201
Returns the assignment object if the post succeeded.

#### Body: application/json (object)  
- **bind** ()  
  Indicates whether to start the process of binding coverage, which includes notifying and subsequently charging the independent contractor for the premium amount due. Defaults to `true`. When false, 1099Policy does not notify or schedule a charge. Note that the independent contractor will not be issued coverage if bind is set to `false`.

- **certificates** (object)

- **contractor** (string)  
  ID of the contractor.

- **coverage_type** (array[string])  
  An array of coverage types that can include one or more of the following insurance coverage values: `general`, `professional`, and `workers-comp`. If provided, coverage type is factored into the eligibility determination (i.e., does contractor have an active `workers-comp` policy, etc). Defaults to the coverage types of the most recent active policy if `coverage_type` is not provided.

- **created** (integer(int64))

- **effective_date** (integer(int64))  
  The job assignment start date, measured in seconds since the Unix epoch.

- **eligible** (object)

- **end_date** (integer(int64))  
  The projected job assignment end date, measured in seconds since the Unix epoch.

- **id** (string)

- **job** (string)  
  ID of the job that the contractor intends to accept.

- **net_rate** (integer)  
  The amount of money the 1099 contractor pays in premium per every $100 earned.

A positive integer representing the premium owed per $100 earned. The `net_rate` is stored in cents (e.g., 48 represents $0.48).

- **policy** (string)  
  ID of the policy that you want attached to the assignment.
